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: 15.0.2.11458
Syntax
C#
public static Func<Object, BinaryConvertConversionType, Object>? ConversionFunction(
	Type sourceType,
	Type destinationType
)

Parameters

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

Return Value

Type: 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