Column Selector.Of Type Method
Definition
Namespace: Numerics.NET.DataAnalysis.Schema
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0
Overload List
| OfType( | 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.
public static ColumnSelector OfType<T>()
Type Parameters
- T
- The exact element type to match.
Return Value
ColumnSelectorA 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.
public static ColumnSelector OfType(
Type elementType
)Parameters
- elementType Type
- The exact element type to match.
Return Value
ColumnSelectorA 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
| Argument | elementType is null. |