calculate percentage of how many booleans in array are set to true code example Example: c# bool list count true return list.Count(x => x)