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

◆ IndexOf()

int System.Data.ProviderBase.FieldNameLookup.IndexOf ( string fieldName)
inline

Definition at line 43 of file FieldNameLookup.cs.

44 {
45 if (_fieldNameLookup == null)
46 {
48 }
49 object obj = _fieldNameLookup[fieldName];
50 int num;
51 if (obj != null)
52 {
53 num = (int)obj;
54 }
55 else
56 {
57 num = LinearIndexOf(fieldName, CompareOptions.IgnoreCase);
58 if (-1 == num)
59 {
60 num = LinearIndexOf(fieldName, CompareOptions.IgnoreCase | CompareOptions.IgnoreKanaType | CompareOptions.IgnoreWidth);
61 }
62 }
63 return num;
64 }
int LinearIndexOf(string fieldName, CompareOptions compareOptions)

References System.Data.ProviderBase.FieldNameLookup._fieldNameLookup, System.Data.ProviderBase.FieldNameLookup.GenerateLookup(), System.Data.ProviderBase.FieldNameLookup.LinearIndexOf(), and System.obj.

Referenced by System.Data.ProviderBase.FieldNameLookup.GetOrdinal().