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

◆ SyncTree()

void System.Xml.XmlDataDocument.SyncTree ( XmlNode node)
inlinepackage

Definition at line 178 of file XmlDataDocument.cs.

179 {
180 XmlBoundElement rowElem = null;
182 DataRow parentRow = null;
183 bool flag = IsConnected(node);
184 if (rowElem != null)
185 {
186 DataRow row = rowElem.Row;
187 if (row != null && rowElem.ElementState == ElementState.Defoliated)
188 {
189 return;
190 }
191 if (row != null)
192 {
194 if (node == rowElem)
195 {
196 rowElem.ElementState = ElementState.WeakFoliation;
198 }
199 if (flag && row.RowState == DataRowState.Detached)
200 {
201 row.Table.Rows.Add(row);
202 }
203 parentRow = row;
204 }
205 }
206 for (XmlNode xmlNode = node.FirstChild; xmlNode != null; xmlNode = xmlNode.NextSibling)
207 {
208 SyncRows(parentRow, xmlNode, flag);
209 }
210 }
void Add(TKey key, TValue value)
bool GetRegion(XmlNode node, [NotNullWhen(true)] out XmlBoundElement rowElem)
void SynchronizeRowFromRowElement(XmlBoundElement rowElement)
void DefoliateRegion(XmlBoundElement rowElem)
void SyncRows(DataRow parentRow, XmlNode node, bool fAddRowsToTable)

References System.Xml.XmlDataDocument._mapper, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Xml.XmlDataDocument.DefoliateRegion(), System.Xml.Dictionary, System.Xml.DataSetMapper.GetRegion(), System.Xml.XmlNode.IsConnected(), System.Xml.XmlDataDocument.SynchronizeRowFromRowElement(), and System.Xml.XmlDataDocument.SyncRows().