System.Data.XMLDiffLoader.GetTable C# (CSharp) Method

GetTable() private method

private GetTable ( string tableName, string ns ) : DataTable
tableName string
ns string
return DataTable
        private DataTable GetTable(string tableName, string ns)
        {
            if (_tables == null)
                return _dataSet.Tables.GetTable(tableName, ns);

            if (_tables.Count == 0)
                return (DataTable)_tables[0];

            for (int i = 0; i < _tables.Count; i++)
            {
                DataTable dt = (DataTable)_tables[i];
                if (string.Equals(dt.TableName, tableName, StringComparison.Ordinal)
                    && string.Equals(dt.Namespace, ns, StringComparison.Ordinal))
                    return dt;
            }
            return null;
        }