Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CanConvertTo() [1/2]

override bool System.ComponentModel.NullableConverter.CanConvertTo ( ITypeDescriptorContext? context,
Type? destinationType )
inlinevirtual

Reimplemented from System.ComponentModel.TypeConverter.

Definition at line 61 of file NullableConverter.cs.

62 {
63 if (destinationType == UnderlyingType)
64 {
65 return true;
66 }
67 if (destinationType == typeof(InstanceDescriptor))
68 {
69 return true;
70 }
71 if (UnderlyingTypeConverter != null)
72 {
73 return UnderlyingTypeConverter.CanConvertTo(context, destinationType);
74 }
75 return base.CanConvertTo(context, destinationType);
76 }
bool CanConvertTo(Type destinationType)

References System.ComponentModel.TypeConverter.CanConvertTo(), System.ComponentModel.NullableConverter.UnderlyingType, and System.ComponentModel.NullableConverter.UnderlyingTypeConverter.