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

◆ GetTable()

DataTable System.Data.XMLDiffLoader.GetTable ( string tableName,
string ns )
inlineprivate

Definition at line 237 of file XMLDiffLoader.cs.

238 {
239 if (_tables == null)
240 {
241 return _dataSet.Tables.GetTable(tableName, ns);
242 }
243 if (_tables.Count == 0)
244 {
245 return (DataTable)_tables[0];
246 }
247 for (int i = 0; i < _tables.Count; i++)
248 {
249 DataTable dataTable = (DataTable)_tables[i];
250 if (string.Equals(dataTable.TableName, tableName, StringComparison.Ordinal) && string.Equals(dataTable.Namespace, ns, StringComparison.Ordinal))
251 {
252 return dataTable;
253 }
254 }
255 return null;
256 }
DataTableCollection Tables
Definition DataSet.cs:396
DataTable GetTable(string name, string ns)

References System.Data.XMLDiffLoader._dataSet, System.Data.XMLDiffLoader._tables, System.Collections.ArrayList.Count, System.Xml.Dictionary, System.Data.DataTableCollection.GetTable(), and System.Data.DataSet.Tables.

Referenced by System.Data.XMLDiffLoader.ProcessErrors(), and System.Data.XMLDiffLoader.ReadOldRowData().