Using custom grouping operators in LINQ

added by tomasp
2/7/2010 12:23:42 PM

2 Kicks, 123 Views

In LINQ, we can group data using the "group by" clause. However, there are other potentially useful implementations of grouping. For example, we may want to group only adjacent elements or group ascending or descending parts of the data. This article shows how to use custom behavior when grouping data using "group by" in LINQ query.