ColumnSelector.OfType Method

Definition

Namespace: Numerics.NET.DataAnalysis.Schema
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0

Overload List

OfType(Type) Creates a selector for columns whose element type exactly matches the specified type.
OfType<T>() Creates a selector for columns whose element type exactly matches T.

OfType<T>

Creates a selector for columns whose element type exactly matches T.
C#
public static ColumnSelector OfType<T>()

Type Parameters

T
The exact element type to match.

Return Value

ColumnSelector
A selector that matches columns with element type T.

Remarks

The selector resolves against DataFrameSchema<R, C> and inspects schema metadata only. Matching uses exact Type equality; it does not unwrap nullable types, apply numeric promotion, or perform conversion-based matching.

OfType(Type)

Creates a selector for columns whose element type exactly matches the specified type.
C#
public static ColumnSelector OfType(
	Type elementType
)

Parameters

elementType  Type
The exact element type to match.

Return Value

ColumnSelector
A selector that matches columns with element type elementType.

Remarks

The selector resolves against DataFrameSchema<R, C> and inspects schema metadata only. Matching uses exact Type equality; it does not unwrap nullable types, apply numeric promotion, or perform conversion-based matching.

Exceptions

ArgumentNullExceptionelementType is null.

See Also