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

◆ GetCVTypeFromClass()

static int Microsoft.Win32.OAVariantLib.GetCVTypeFromClass ( Type ctype)
inlinestaticprivate

Definition at line 52 of file OAVariantLib.cs.

53 {
54 int num = -1;
55 for (int i = 0; i < ClassTypes.Length; i++)
56 {
57 if (ctype.Equals(ClassTypes[i]))
58 {
59 num = i;
60 break;
61 }
62 }
63 if (num == -1)
64 {
65 num = 18;
66 }
67 return num;
68 }
static readonly Type[] ClassTypes
override bool Equals(object? o)
Definition Type.cs:1113

References Microsoft.Win32.OAVariantLib.ClassTypes, and System.Type.Equals().

Referenced by Microsoft.Win32.OAVariantLib.ChangeType().