internal DataTable GetTableSmart(string name, string ns)
{
int fCount = 0;
DataTable fTable = null;
for (int i = 0; i < _list.Count; i++)
{
DataTable table = (DataTable)_list[i];
if (table.TableName == name)
{
if (table.Namespace == ns)
{
return table;
}
fCount++;
fTable = table;
}
}
// if we get here we didn't match the namespace
// so return the table only if fCount==1 (it's the only one)
return (fCount == 1) ? fTable : null;
}