Click or drag to resize

FrameColumnAsT Method

Exposes the column as a list of uniform type.

Namespace:  Meta.Numerics.Data
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax
public IReadOnlyList<T> As<T>()

Type Parameters

T
The type of the list.

Return Value

Type: IReadOnlyListT
An object that allows the column to be accessed as a typed list.
Remarks

This operation is both time and memory efficient. It does not convert every element into a new list, but instead simply instantiates a converter that implements the list operations directly against the already existing storage.

The type specified by T need not be the same as the underlying stored type of the column. As long as the exposed values can be cast or converted to the specified type, the typed list returned will work as required.

See Also