I have this List:
List<bool> values = new List<bool>();
When I do this:
int amountTrue = values.Count(v => true);
7. That's just the amount of values in the List. I think it checks if the value exists, but this is not what I want.
How do I get the amount of
True values in the List by using
Count or any other chainable method? I know I can loop through it but I think this could be done easier.