Grouping<TKey>.As<T> Method

Returns a strongly typed version of a grouping object.

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
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

InvalidCastException

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

See Also