How can I count elements that are equal to 0 in each array of a list?
I have a list List<byte[]> piks.
I would like to count in each byte[] how many elements are with equal to 0.
I tried a few ways:
from c in piksle_lista_tablic[84]
where (c.Equals(0))
select c
or
piksle_lista_tablic[84].Count(n => n == 0)
and I always get the error Expression cannot contain lambda expressions.
For example:
piks[1] is an array containing 1156 items, and I would like to know how many specific elements are in that array.
PS: Can i use Linq in watch window?