ColumnSelector.AssignableTo Method

Definition

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

Overload List

AssignableTo(Type) Creates a selector for columns whose element type is assignable to the specified type.
AssignableTo<T>() Creates a selector for columns whose element type is assignable to T.

AssignableTo<T>

Creates a selector for columns whose element type is assignable to T.
C#
public static ColumnSelector AssignableTo<T>()

Type Parameters

T
The assignment target type.

Return Value

ColumnSelector
A selector that matches columns assignable to T.

Remarks

The selector resolves against DataFrameSchema<R, C> and inspects schema metadata only. Matching uses IsAssignableFrom(Type) with T as the target type. It does not apply numeric widening or conversion-based matching.

AssignableTo(Type)

Creates a selector for columns whose element type is assignable to the specified type.
C#
public static ColumnSelector AssignableTo(
	Type elementType
)

Parameters

elementType  Type
The assignment target type.

Return Value

ColumnSelector
A selector that matches columns assignable to elementType.

Remarks

The selector resolves against DataFrameSchema<R, C> and inspects schema metadata only. Matching uses IsAssignableFrom(Type) with elementType as the target type. It does not apply numeric widening or conversion-based matching.

Exceptions

ArgumentNullExceptionelementType is null.

See Also