Click or drag to resize

BinaryConvertConversionFunction Method

Returns a function to perform a conversion, or null if no conversion is possible.

Namespace: Demo3D.IO
Assembly: Demo3D.IO (in Demo3D.IO.dll) Version: 19.00.00
Syntax
C#
public static Func<Object, BinaryConvertConversionType, Object>? ConversionFunction(
	Type sourceType,
	Type destinationType
)

Parameters

sourceType  Type
The source type.
destinationType  Type
The destination type.

Return Value

FuncObject, BinaryConvertConversionType, Object
The conversion function, or null.
Remarks

BinaryConvert will attempt any conversion, including conversions that lose data (eg unsigned to signed int, or int to bool).

The function returned will return null if the conversion can't be performed.

See Also