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

◆ InternalIndexOf() [2/2]

int System.Data.DataTableCollection.InternalIndexOf ( string tableName,
string tableNamespace )
inlinepackage

Definition at line 577 of file DataTableCollection.cs.

578 {
579 int num = -1;
580 if (tableName != null && 0 < tableName.Length)
581 {
582 int count = _list.Count;
583 int num2 = 0;
584 for (int i = 0; i < count; i++)
585 {
586 DataTable dataTable = (DataTable)_list[i];
588 if (num2 == 1 && dataTable.Namespace == tableNamespace)
589 {
590 return i;
591 }
592 if (num2 == -1 && dataTable.Namespace == tableNamespace)
593 {
594 num = ((num == -1) ? i : (-2));
595 }
596 }
597 }
598 return num;
599 }
int NamesEqual(string s1, string s2, bool fCaseSensitive, CultureInfo locale)

References System.Data.DataTableCollection._dataSet, System.Data.DataTableCollection._list, System.count, System.Collections.ArrayList.Count, System.Data.DataSet.Locale, and System.Data.InternalDataCollectionBase.NamesEqual().