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

◆ CreateToplevelTables()

DataTable[] System.Data.XmlDataTreeWriter.CreateToplevelTables ( )
inlineprivate

Definition at line 64 of file XmlDataTreeWriter.cs.

65 {
67 for (int i = 0; i < _dTables.Count; i++)
68 {
69 DataTable dataTable = (DataTable)_dTables[i];
70 if (dataTable.ParentRelations.Count == 0)
71 {
73 continue;
74 }
75 bool flag = false;
76 for (int j = 0; j < dataTable.ParentRelations.Count; j++)
77 {
78 if (dataTable.ParentRelations[j].Nested)
79 {
80 if (dataTable.ParentRelations[j].ParentTable == dataTable)
81 {
82 flag = false;
83 break;
84 }
85 flag = true;
86 }
87 }
88 if (!flag)
89 {
91 }
92 }
93 if (arrayList.Count == 0)
94 {
95 return Array.Empty<DataTable>();
96 }
97 DataTable[] array = new DataTable[arrayList.Count];
98 arrayList.CopyTo(array, 0);
99 return array;
100 }
virtual int Add(object? value)

References System.Data.XmlDataTreeWriter._dTables, System.Collections.ArrayList.Add(), System.array, System.Collections.ArrayList.Count, and System.Xml.Dictionary.

Referenced by System.Data.XmlDataTreeWriter.XmlDataTreeWriter().