Grouping.Group<T>(IList<T>, IEqualityComparer<T>) Method

Returns a grouping by the unique elements in a list using the specified comparer to determine equality.

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Grouping<T> Group<T>(
	this IList<T> keys,
	IEqualityComparer<T> comparer
)

Parameters

keys  IList<T>
A list.
comparer  IEqualityComparer<T>
The comparer used to determine whether two keys are equal.

Type Parameters

T
The type of the elements of the list.

Return Value

Grouping<T>
A grouping of the elements of keys and indexed by the unique elements in keys.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IList<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also