I have this data structure:
class Product { public string Name { get; set; } public int Count { get; set; } } var list = new List(){ { Na
You need the Count extension method
list.Count(p => p.Count <= 100);
EDIT:
If you want the sum of the items, Where and Sum extension methods could be utilized:
Where
Sum
list.Where(p => p.Count <= 100).Sum(p => p.Count);