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

◆ AppendChildForLoad()

override XmlNode System.Xml.XmlElement.AppendChildForLoad ( XmlNode newChild,
XmlDocument doc )
inlinepackagevirtual

Reimplemented from System.Xml.XmlNode.

Definition at line 228 of file XmlElement.cs.

229 {
230 XmlNodeChangedEventArgs insertEventArgsForLoad = doc.GetInsertEventArgsForLoad(newChild, this);
231 if (insertEventArgsForLoad != null)
232 {
233 doc.BeforeEvent(insertEventArgsForLoad);
234 }
236 if (_lastChild == null || _lastChild == this)
237 {
241 }
242 else
243 {
248 if (lastChild.IsText && xmlLinkedNode.IsText)
249 {
251 }
252 else
253 {
254 xmlLinkedNode.SetParentForLoad(this);
255 }
256 }
257 if (insertEventArgsForLoad != null)
258 {
259 doc.AfterEvent(insertEventArgsForLoad);
260 }
261 return xmlLinkedNode;
262 }
XmlLinkedNode _lastChild
Definition XmlElement.cs:13
XmlLinkedNode(XmlDocument doc)
static void NestTextNodes(XmlNode prevNode, XmlNode nextNode)
Definition XmlNode.cs:1274
virtual void SetParentForLoad(XmlNode node)
Definition XmlNode.cs:1207

References System.Xml.XmlLinkedNode.XmlLinkedNode(), System.Xml.XmlElement._lastChild, System.Xml.Dictionary, System.Xml.XmlNode.NestTextNodes(), System.Xml.XmlLinkedNode.next, and System.Xml.XmlNode.SetParentForLoad().