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

◆ SyncRows()

void System.Xml.XmlDataDocument.SyncRows ( DataRow parentRow,
XmlNode node,
bool fAddRowsToTable )
inlinepackage

Definition at line 147 of file XmlDataDocument.cs.

148 {
149 if (node is XmlBoundElement { Row: var row } xmlBoundElement)
150 {
151 if (row != null && xmlBoundElement.ElementState == ElementState.Defoliated)
152 {
153 return;
154 }
155 if (row != null)
156 {
158 xmlBoundElement.ElementState = ElementState.WeakFoliation;
160 if (parentRow != null)
161 {
163 }
164 if (fAddRowsToTable && row.RowState == DataRowState.Detached)
165 {
166 row.Table.Rows.Add(row);
167 }
168 parentRow = row;
169 }
170 }
171 for (XmlNode xmlNode = node.FirstChild; xmlNode != null; xmlNode = xmlNode.NextSibling)
172 {
174 }
175 }
void Add(TKey key, TValue value)
static void SetNestedParentRow(DataRow childRow, DataRow parentRow)
void SynchronizeRowFromRowElement(XmlBoundElement rowElement)
void DefoliateRegion(XmlBoundElement rowElem)
void SyncRows(DataRow parentRow, XmlNode node, bool fAddRowsToTable)

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Xml.XmlDataDocument.DefoliateRegion(), System.Xml.Dictionary, System.Xml.XmlDataDocument.SetNestedParentRow(), System.Xml.XmlDataDocument.SynchronizeRowFromRowElement(), and System.Xml.XmlDataDocument.SyncRows().

Referenced by System.Xml.XmlDataDocument.CloneTree(), System.Xml.XmlDataDocument.LoadDataSetFromTree(), System.Xml.XmlDataDocument.SyncRows(), and System.Xml.XmlDataDocument.SyncTree().