DEFINE GROUPBY IN LINQ

Define GroupBy in Linq

Posted on 3 months ago

GroupBy Operator belong to grouping operator category. This operator takes flat sequence of items,organize that sequence into groups(IGruping<K,V>) based on a specific key and return group of sequences.

In short we can say that GroupBy creates and returns a sequence of IGrouping<K,V>