リストの各配列で 0
と等しい要素を数えるにはどうすればよいですか?
I have a list List piks
.
I would like to count in each byte[]
how many elements are with equal to 0
.
私はいくつかの方法を試しました:
from c in piksle_lista_tablic[84]
where (c.Equals(0))
select c
または
piksle_lista_tablic[84].Count(n => n == 0)
and I always get the errまたはExpression cannot contain lambda expressions
.
Fまたはexample:
piks[1]
is an array containing 1156
items, and I would like to know how many specific elements are in that array.
PS:私は時計ウィンドウでLinqを使用できますか?