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

◆ CanConvertFrom() [1/2]

override bool System.ComponentModel.EnumConverter.CanConvertFrom ( ITypeDescriptorContext? context,
Type sourceType )
inlinevirtual

Reimplemented from System.ComponentModel.TypeConverter.

Definition at line 24 of file EnumConverter.cs.

25 {
26 if (sourceType == typeof(string) || sourceType == typeof(Enum[]))
27 {
28 return true;
29 }
30 return base.CanConvertFrom(context, sourceType);
31 }