BinaryConvertCanConvert Method |
Namespace: Demo3D.IO
public static bool CanConvert( Type sourceType, Type destinationType, bool castTypes = true )
If castTypes is true, then BinaryConvert will attempt any conversion, including conversions that lose data (eg unsigned to signed int, int to bool, or string to int). If it's false, then BinaryConvert will only attempt lossless conversions (eg int16 to int32).