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

◆ RemoveNodeAt()

virtual XmlNode System.Xml.XmlNamedNodeMap.RemoveNodeAt ( int i)
inlinepackagevirtual

Reimplemented in System.Xml.XmlAttributeCollection.

Definition at line 336 of file XmlNamedNodeMap.cs.

337 {
338 XmlNode xmlNode = (XmlNode)nodes[i];
339 string value = xmlNode.Value;
340 XmlNodeChangedEventArgs eventArgs = parent.GetEventArgs(xmlNode, parent, null, value, value, XmlNodeChangedAction.Remove);
341 if (eventArgs != null)
342 {
344 }
345 nodes.RemoveAt(i);
346 xmlNode.SetParent(null);
347 if (eventArgs != null)
348 {
350 }
351 return xmlNode;
352 }
virtual XmlNodeChangedEventArgs GetEventArgs(XmlNode node, XmlNode oldParent, XmlNode newParent, string oldValue, string newValue, XmlNodeChangedAction action)
Definition XmlNode.cs:1239
virtual void AfterEvent(XmlNodeChangedEventArgs args)
Definition XmlNode.cs:1261
virtual void BeforeEvent(XmlNodeChangedEventArgs args)
Definition XmlNode.cs:1253

References System.Xml.XmlNode.AfterEvent(), System.Xml.XmlNode.BeforeEvent(), System.Xml.Dictionary, System.Xml.XmlNode.GetEventArgs(), System.Xml.XmlNamedNodeMap.nodes, System.Xml.XmlNamedNodeMap.parent, System.Xml.XmlNamedNodeMap.SmallXmlNodeList.RemoveAt(), and System.value.

Referenced by System.Xml.XmlNamedNodeMap.RemoveNamedItem(), System.Xml.XmlNamedNodeMap.RemoveNamedItem(), and System.Xml.XmlNamedNodeMap.ReplaceNodeAt().