Operations<T>.ConvertTo Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

ConvertTo<U>(T) Converts an instance of the operand type to the specified type.
ConvertTo<U>(T, T, U) Converts an instance of the operand type to the specified type.

ConvertTo<U>(T)

Converts an instance of the operand type to the specified type.
C#
public static U ConvertTo<U>(
	T operand
)

Parameters

operand  T
 

Type Parameters

U
The type to convert to.

Return Value

U
value converted to a value of type U.

ConvertTo<U>(T, T, U)

Converts an instance of the operand type to the specified type.
C#
public static U ConvertTo<U>(
	T value,
	T missingValue,
	U toMissingValue
)

Parameters

value  T
The value to convert.
missingValue  T
 
toMissingValue  U
 

Type Parameters

U
The type to convert to.

Return Value

U
value converted to a value of type U.

See Also