internal bool Contains(string name, string tableNamespace, bool checkProperty, bool caseSensitive)
{
if (!caseSensitive)
{
return (InternalIndexOf(name) >= 0);
}
// Case-Sensitive compare
int count = _list.Count;
for (int i = 0; i < count; i++)
{
DataTable table = (DataTable)_list[i];
// this may be needed to check wether the cascading is creating some conflicts
string ns = checkProperty ? table.Namespace : table._tableNamespace;
if (NamesEqual(table.TableName, name, true, _dataSet.Locale) == 1 && (ns == tableNamespace))
{
return true;
}
}
return false;
}