Enumerable.groupBy Method

Groups elements of a sequence according to a specified key selector function.
 
 
Static This method is static.

Parameters

source

Type: IEnumerable
keySelector

Type: Function
Optional: True
equalityComparer

Type: IEqualityComparer
Optional: True

Return Value


Type: IEnumerable
ElementType: Grouping
An array of groupings.