Grouping<TKey>.As<T> Method

Returns a strongly typed version of a grouping object.

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public Grouping<T> As<T>()

Type Parameters

T
The type of the group keys. Must be the same as TKey.

Return Value

Grouping<T>
A Grouping<TKey> of type T.

Exceptions

InvalidCastExceptionThe type T is not equal to the grouping's key type TKey.

See Also