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

◆ Contains() [3/4]

bool System.Data.DataTableCollection.Contains ( string name,
string tableNamespace,
bool checkProperty,
bool caseSensitive )
inlinepackage

Definition at line 432 of file DataTableCollection.cs.

433 {
434 if (!caseSensitive)
435 {
436 return InternalIndexOf(name) >= 0;
437 }
438 int count = _list.Count;
439 for (int i = 0; i < count; i++)
440 {
441 DataTable dataTable = (DataTable)_list[i];
442 string text = (checkProperty ? dataTable.Namespace : dataTable._tableNamespace);
443 if (NamesEqual(dataTable.TableName, name, fCaseSensitive: true, _dataSet.Locale) == 1 && text == tableNamespace)
444 {
445 return true;
446 }
447 }
448 return false;
449 }
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.DataTableCollection.InternalIndexOf(), System.Data.DataSet.Locale, System.Data.InternalDataCollectionBase.NamesEqual(), and System.text.