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

◆ AttachRows()

void System.Data.XmlDataLoader.AttachRows ( DataRow parentRow,
XmlNode parentElement )
inlineprivate

Definition at line 115 of file XmlDataLoader.cs.

116 {
117 if (parentElement == null)
118 {
119 return;
120 }
121 for (XmlNode xmlNode = parentElement.FirstChild; xmlNode != null; xmlNode = xmlNode.NextSibling)
122 {
123 if (xmlNode.NodeType == XmlNodeType.Element)
124 {
127 if (rowFromElement != null && rowFromElement.RowState == DataRowState.Detached)
128 {
129 if (parentRow != null)
130 {
131 rowFromElement.SetNestedParentRow(parentRow, setNonNested: false);
132 }
134 }
135 else if (rowFromElement == null)
136 {
138 }
140 }
141 }
142 }
void Add(TKey key, TValue value)
void AttachRows(DataRow parentRow, XmlNode parentElement)
DataRow GetRowFromElement(XmlElement e)

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Data.XmlDataLoader.AttachRows(), and System.Data.XmlDataLoader.GetRowFromElement().

Referenced by System.Data.XmlDataLoader.AttachRows(), and System.Data.XmlDataLoader.LoadData().