FromConverter.To Method

Definition

Namespace: Numerics.NET.Generic
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

To<U>(BigFloat) Converts a value to the specified type.
To<U>(BigInteger) Converts a value to the specified type.
To<U>(BigRational) Converts a value to the specified type.
To<U>(Boolean) Converts a value to the specified type.
To<U>(Byte) Converts a value to the specified type.
To<U>(Complex<BigFloat>) Converts a complex value to a complex value of the specified type.
To<U>(Complex<BigInteger>) Converts a complex value to a complex value of the specified type.
To<U>(Complex<BigRational>) Converts a complex value to a complex value of the specified type.
To<U>(Complex<Quad>) Converts a complex value to a complex value of the specified type.
To<U>(Complex<Boolean>) Converts a complex value to a complex value of the specified type.
To<U>(Complex<Byte>) Converts a complex value to a complex value of the specified type.
To<U>(Complex<Decimal>) Converts a complex value to a complex value of the specified type.
To<U>(Complex<Double>) Converts a complex value to a complex value of the specified type.
To<U>(Complex<Half>) Converts a complex value to a complex value of the specified type.
To<U>(Complex<Int128>) Converts a complex value to a complex value of the specified type.
To<U>(Complex<Int16>) Converts a complex value to a complex value of the specified type.
To<U>(Complex<Int32>) Converts a complex value to a complex value of the specified type.
To<U>(Complex<Int64>) Converts a complex value to a complex value of the specified type.
To<U>(Complex<SByte>) Converts a complex value to a complex value of the specified type.
To<U>(Complex<Single>) Converts a complex value to a complex value of the specified type.
To<U>(Complex<UInt128>) Converts a complex value to a complex value of the specified type.
To<U>(Complex<UInt16>) Converts a complex value to a complex value of the specified type.
To<U>(Complex<UInt32>) Converts a complex value to a complex value of the specified type.
To<U>(Complex<UInt64>) Converts a complex value to a complex value of the specified type.
To<U>(Decimal) Converts a value to the specified type.
To<U>(Double) Converts a value to the specified type.
To<U>(Half) Converts a value to the specified type.
To<U>(Int128) Converts a value to the specified type.
To<U>(Int16) Converts a value to the specified type.
To<U>(Int32) Converts a value to the specified type.
To<U>(Int64) Converts a value to the specified type.
To<U>(Quad) Converts a value to the specified type.
To<U>(SByte) Converts a value to the specified type.
To<U>(Single) Converts a value to the specified type.
To<U>(UInt128) Converts a value to the specified type.
To<U>(UInt16) Converts a value to the specified type.
To<U>(UInt32) Converts a value to the specified type.
To<U>(UInt64) Converts a value to the specified type.

To<U>(BigFloat)

Converts a value to the specified type.
C#
public U To<U>(
	BigFloat value
)

Parameters

value  BigFloat
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

U
The converted value.

To<U>(BigInteger)

Converts a value to the specified type.
C#
public U To<U>(
	BigInteger value
)

Parameters

value  BigInteger
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

U
The converted value.

To<U>(BigRational)

Converts a value to the specified type.
C#
public U To<U>(
	BigRational value
)

Parameters

value  BigRational
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

U
The converted value.

To<U>(Boolean)

Converts a value to the specified type.
C#
public U To<U>(
	bool value
)

Parameters

value  Boolean
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

U
The converted value.

To<U>(Byte)

Converts a value to the specified type.
C#
public U To<U>(
	byte value
)

Parameters

value  Byte
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

U
The converted value.

To<U>(Complex<BigFloat>)

Converts a complex value to a complex value of the specified type.
C#
public Complex<U> To<U>(
	Complex<BigFloat> value
)

Parameters

value  Complex<BigFloat>
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

Complex<U>
The converted value.

Implements

IFromConverter<T>.To<U>(Complex<T>)

To<U>(Complex<BigInteger>)

Converts a complex value to a complex value of the specified type.
C#
public Complex<U> To<U>(
	Complex<BigInteger> value
)

Parameters

value  Complex<BigInteger>
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

Complex<U>
The converted value.

Implements

IFromConverter<T>.To<U>(Complex<T>)

To<U>(Complex<BigRational>)

Converts a complex value to a complex value of the specified type.
C#
public Complex<U> To<U>(
	Complex<BigRational> value
)

Parameters

value  Complex<BigRational>
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

Complex<U>
The converted value.

Implements

IFromConverter<T>.To<U>(Complex<T>)

To<U>(Complex<Quad>)

Converts a complex value to a complex value of the specified type.
C#
public Complex<U> To<U>(
	Complex<Quad> value
)

Parameters

value  Complex<Quad>
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

Complex<U>
The converted value.

Implements

IFromConverter<T>.To<U>(Complex<T>)

To<U>(Complex<Boolean>)

Converts a complex value to a complex value of the specified type.
C#
public Complex<U> To<U>(
	Complex<bool> value
)

Parameters

value  Complex<Boolean>
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

Complex<U>
The converted value.

Implements

IFromConverter<T>.To<U>(Complex<T>)

To<U>(Complex<Byte>)

Converts a complex value to a complex value of the specified type.
C#
public Complex<U> To<U>(
	Complex<byte> value
)

Parameters

value  Complex<Byte>
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

Complex<U>
The converted value.

Implements

IFromConverter<T>.To<U>(Complex<T>)

To<U>(Complex<Decimal>)

Converts a complex value to a complex value of the specified type.
C#
public Complex<U> To<U>(
	Complex<decimal> value
)

Parameters

value  Complex<Decimal>
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

Complex<U>
The converted value.

Implements

IFromConverter<T>.To<U>(Complex<T>)

To<U>(Complex<Double>)

Converts a complex value to a complex value of the specified type.
C#
public Complex<U> To<U>(
	Complex<double> value
)

Parameters

value  Complex<Double>
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

Complex<U>
The converted value.

Implements

IFromConverter<T>.To<U>(Complex<T>)

To<U>(Complex<Half>)

Converts a complex value to a complex value of the specified type.
C#
public Complex<U> To<U>(
	Complex<Half> value
)

Parameters

value  Complex<Half>
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

Complex<U>
The converted value.

Implements

IFromConverter<T>.To<U>(Complex<T>)

To<U>(Complex<Int128>)

Converts a complex value to a complex value of the specified type.
C#
public Complex<U> To<U>(
	Complex<Int128> value
)

Parameters

value  Complex<Int128>
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

Complex<U>
The converted value.

Implements

IFromConverter<T>.To<U>(Complex<T>)

To<U>(Complex<Int16>)

Converts a complex value to a complex value of the specified type.
C#
public Complex<U> To<U>(
	Complex<short> value
)

Parameters

value  Complex<Int16>
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

Complex<U>
The converted value.

Implements

IFromConverter<T>.To<U>(Complex<T>)

To<U>(Complex<Int32>)

Converts a complex value to a complex value of the specified type.
C#
public Complex<U> To<U>(
	Complex<int> value
)

Parameters

value  Complex<Int32>
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

Complex<U>
The converted value.

Implements

IFromConverter<T>.To<U>(Complex<T>)

To<U>(Complex<Int64>)

Converts a complex value to a complex value of the specified type.
C#
public Complex<U> To<U>(
	Complex<long> value
)

Parameters

value  Complex<Int64>
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

Complex<U>
The converted value.

Implements

IFromConverter<T>.To<U>(Complex<T>)

To<U>(Complex<SByte>)

Converts a complex value to a complex value of the specified type.
C#
public Complex<U> To<U>(
	Complex<sbyte> value
)

Parameters

value  Complex<SByte>
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

Complex<U>
The converted value.

Implements

IFromConverter<T>.To<U>(Complex<T>)

To<U>(Complex<Single>)

Converts a complex value to a complex value of the specified type.
C#
public Complex<U> To<U>(
	Complex<float> value
)

Parameters

value  Complex<Single>
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

Complex<U>
The converted value.

Implements

IFromConverter<T>.To<U>(Complex<T>)

To<U>(Complex<UInt128>)

Converts a complex value to a complex value of the specified type.
C#
public Complex<U> To<U>(
	Complex<UInt128> value
)

Parameters

value  Complex<UInt128>
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

Complex<U>
The converted value.

Implements

IFromConverter<T>.To<U>(Complex<T>)

To<U>(Complex<UInt16>)

Converts a complex value to a complex value of the specified type.
C#
public Complex<U> To<U>(
	Complex<ushort> value
)

Parameters

value  Complex<UInt16>
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

Complex<U>
The converted value.

Implements

IFromConverter<T>.To<U>(Complex<T>)

To<U>(Complex<UInt32>)

Converts a complex value to a complex value of the specified type.
C#
public Complex<U> To<U>(
	Complex<uint> value
)

Parameters

value  Complex<UInt32>
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

Complex<U>
The converted value.

Implements

IFromConverter<T>.To<U>(Complex<T>)

To<U>(Complex<UInt64>)

Converts a complex value to a complex value of the specified type.
C#
public Complex<U> To<U>(
	Complex<ulong> value
)

Parameters

value  Complex<UInt64>
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

Complex<U>
The converted value.

Implements

IFromConverter<T>.To<U>(Complex<T>)

To<U>(Decimal)

Converts a value to the specified type.
C#
public U To<U>(
	decimal value
)

Parameters

value  Decimal
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

U
The converted value.

To<U>(Double)

Converts a value to the specified type.
C#
public U To<U>(
	double value
)

Parameters

value  Double
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

U
The converted value.

To<U>(Half)

Converts a value to the specified type.
C#
public U To<U>(
	Half value
)

Parameters

value  Half
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

U
The converted value.

To<U>(Int128)

Converts a value to the specified type.
C#
public U To<U>(
	Int128 value
)

Parameters

value  Int128
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

U
The converted value.

To<U>(Int16)

Converts a value to the specified type.
C#
public U To<U>(
	short value
)

Parameters

value  Int16
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

U
The converted value.

To<U>(Int32)

Converts a value to the specified type.
C#
public U To<U>(
	int value
)

Parameters

value  Int32
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

U
The converted value.

To<U>(Int64)

Converts a value to the specified type.
C#
public U To<U>(
	long value
)

Parameters

value  Int64
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

U
The converted value.

To<U>(Quad)

Converts a value to the specified type.
C#
public U To<U>(
	Quad value
)

Parameters

value  Quad
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

U
The converted value.

To<U>(SByte)

Converts a value to the specified type.
C#
public U To<U>(
	sbyte value
)

Parameters

value  SByte
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

U
The converted value.

To<U>(Single)

Converts a value to the specified type.
C#
public U To<U>(
	float value
)

Parameters

value  Single
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

U
The converted value.

To<U>(UInt128)

Converts a value to the specified type.
C#
public U To<U>(
	UInt128 value
)

Parameters

value  UInt128
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

U
The converted value.

To<U>(UInt16)

Converts a value to the specified type.
C#
public U To<U>(
	ushort value
)

Parameters

value  UInt16
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

U
The converted value.

To<U>(UInt32)

Converts a value to the specified type.
C#
public U To<U>(
	uint value
)

Parameters

value  UInt32
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

U
The converted value.

To<U>(UInt64)

Converts a value to the specified type.
C#
public U To<U>(
	ulong value
)

Parameters

value  UInt64
The value to convert.

Type Parameters

U
The type to convert to.

Return Value

U
The converted value.

See Also