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

◆ GetValueIndexCaseInsensitive()

int System.Dynamic.ExpandoClass.GetValueIndexCaseInsensitive ( string name,
ExpandoObject obj )
inlineprivate

Definition at line 90 of file ExpandoClass.cs.

91 {
92 int num = -1;
93 lock (obj.LockObject)
94 {
95 for (int num2 = _keys.Length - 1; num2 >= 0; num2--)
96 {
97 if (string.Equals(_keys[num2], name, StringComparison.OrdinalIgnoreCase) && !obj.IsDeletedMember(num2))
98 {
99 if (num != -1)
100 {
101 return -2;
102 }
103 num = num2;
104 }
105 }
106 return num;
107 }
108 }
readonly string[] _keys

References System.Dynamic.ExpandoClass._keys, and System.obj.

Referenced by System.Dynamic.ExpandoClass.GetValueIndex().