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

◆ IndexOfCaseInsensitive()

int System.Data.DataColumnCollection.IndexOfCaseInsensitive ( string name)
inlinepackage

Definition at line 586 of file DataColumnCollection.cs.

587 {
589 int num = -1;
590 DataColumn dataColumn = null;
591 for (int i = 0; i < Count; i++)
592 {
593 dataColumn = (DataColumn)_list[i];
594 if ((specialHashCode == 0 || dataColumn._hashCode == 0 || dataColumn._hashCode == specialHashCode) && NamesEqual(dataColumn.ColumnName, name, fCaseSensitive: false, _table.Locale) != 0)
595 {
596 if (num != -1)
597 {
598 return -2;
599 }
600 num = i;
601 }
602 }
603 return num;
604 }
int GetSpecialHashCode(string name)
int NamesEqual(string s1, string s2, bool fCaseSensitive, CultureInfo locale)

References System.Data.DataColumnCollection._list, System.Data.DataColumnCollection._table, System.Data.InternalDataCollectionBase.Count, System.Data.DataTable.GetSpecialHashCode(), System.Data.DataTable.Locale, and System.Data.InternalDataCollectionBase.NamesEqual().

Referenced by System.Data.DataColumnCollection.Contains(), System.Data.DataColumnCollection.Contains(), and System.Data.DataColumnCollection.IndexOf().