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

◆ TopLevelTables() [2/2]

DataTable[] System.Data.DataSet.TopLevelTables ( bool forSchema)
inlinepackage

Definition at line 2645 of file DataSet.cs.

2646 {
2648 if (forSchema)
2649 {
2650 for (int i = 0; i < Tables.Count; i++)
2651 {
2652 DataTable dataTable = Tables[i];
2653 if (dataTable.NestedParentsCount > 1 || dataTable.SelfNested)
2654 {
2656 }
2657 }
2658 }
2659 for (int j = 0; j < Tables.Count; j++)
2660 {
2661 DataTable dataTable2 = Tables[j];
2662 if (dataTable2.NestedParentsCount == 0 && !list.Contains(dataTable2))
2663 {
2665 }
2666 }
2667 if (list.Count != 0)
2668 {
2669 return list.ToArray();
2670 }
2671 return Array.Empty<DataTable>();
2672 }
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
DataTableCollection Tables
Definition DataSet.cs:396

References System.Data.DataTableCollection.Add(), System.Collections.Generic.Dictionary< TKey, TValue >.Contains(), System.Data.InternalDataCollectionBase.Count, System.Runtime.Serialization.Dictionary, System.list, and System.Data.DataSet.Tables.