Пример #1
0
 public int CountBlocksWithColor(int colorIndex)
 {
     return(BlocksColors.ToEnumerable().Count((block) => block == colorIndex));
 }