BinaryConvertConversionFunction Method |
Returns a function to perform a conversion, or null if no conversion is possible.
Namespace: Demo3D.IOAssembly: Demo3D.IO (in Demo3D.IO.dll) Version: 19.00.00
Syntaxpublic 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,
ObjectThe 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