c# count all true in bool array code example Example: c# bool list count true return list.Count(x => x)