List<byte[]> Imagens;
and I want to know if any element in this list has more than 1 mega, I could do this via foreach
, checking item by item:
foreach (var item in Imagens)
if (item.Length > 1000000)
throw new ArgumentException(msn);
What would be the way to do this?
The list must be invalid if any of its elements is larger than 1MB.