Aggregation and Grouping with LINQ
Summarize and organize your data
LINQ can do more than filter and sort: it can summarize and group your data.
β Aggregation: Sum, Count, Average, Min, Max
1
2
3
4
5
6
int[] numbers = { 1, 2, 3, 4, 5 };
int sum = numbers.Sum(); ...