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

◆ DeleteToFollowingSibling()

static void System.Xml.DocumentXPathNavigator.DeleteToFollowingSibling ( XmlNode node,
XmlNode end )
inlinestaticpackage

Definition at line 1593 of file DocumentXPathNavigator.cs.

1594 {
1595 XmlNode parentNode = node.ParentNode;
1596 if (parentNode == null)
1597 {
1599 }
1600 if (node.IsReadOnly || end.IsReadOnly)
1601 {
1603 }
1604 while (node != end)
1605 {
1606 XmlNode oldChild = node;
1607 node = node.NextSibling;
1608 parentNode.RemoveChild(oldChild);
1609 }
1610 parentNode.RemoveChild(node);
1611 }
bool ICollection< KeyValuePair< TKey, TValue > >. IsReadOnly
static string Xpn_MissingParent
Definition SR.cs:1318
static string Xdom_Node_Modify_ReadOnly
Definition SR.cs:1344
Definition SR.cs:7

References System.Xml.Dictionary, System.Collections.Generic.Dictionary< TKey, TValue >.IsReadOnly, System.Xml.XmlNode.IsReadOnly, System.Xml.XmlNode.RemoveChild(), System.SR.Xdom_Node_Modify_ReadOnly, and System.SR.Xpn_MissingParent.

Referenced by System.Xml.DocumentXmlWriter.CloseWithReplaceToFollowingSibling(), System.Xml.DocumentXPathNavigator.DeleteRange(), System.Xml.DocumentXPathNavigator.DeleteSelf(), and System.Xml.DocumentXPathNavigator.SetValue().