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

◆ DeleteSelf()

override void System.Xml.DocumentXPathNavigator.DeleteSelf ( )
inlinevirtual

Reimplemented from System.Xml.XPath.XPathNavigator.

Definition at line 1534 of file DocumentXPathNavigator.cs.

1535 {
1536 XmlNode source = _source;
1537 XmlNode end = source;
1538 switch (source.NodeType)
1539 {
1540 case XmlNodeType.Attribute:
1541 {
1542 XmlAttribute xmlAttribute = (XmlAttribute)source;
1543 if (!xmlAttribute.IsNamespace)
1544 {
1545 XmlNode xmlNode = OwnerNode(xmlAttribute);
1547 if (xmlNode != null)
1548 {
1550 }
1551 break;
1552 }
1553 goto default;
1554 }
1555 case XmlNodeType.Text:
1556 case XmlNodeType.CDATA:
1557 case XmlNodeType.Whitespace:
1558 case XmlNodeType.SignificantWhitespace:
1559 CalibrateText();
1560 source = _source;
1561 end = TextEnd(source);
1562 goto case XmlNodeType.Element;
1563 case XmlNodeType.Element:
1564 case XmlNodeType.ProcessingInstruction:
1565 case XmlNodeType.Comment:
1566 {
1567 XmlNode xmlNode = OwnerNode(source);
1569 if (xmlNode != null)
1570 {
1572 }
1573 break;
1574 }
1575 default:
1577 }
1578 }
static string Xpn_BadPosition
Definition SR.cs:1316
Definition SR.cs:7
static XmlNode OwnerNode(XmlNode node)
static void DeleteToFollowingSibling(XmlNode node, XmlNode end)
static void DeleteAttribute(XmlAttribute attribute, int index)

References System.Xml.DocumentXPathNavigator._attributeIndex, System.Xml.DocumentXPathNavigator._source, System.Xml.DocumentXPathNavigator.CalibrateText(), System.Xml.DocumentXPathNavigator.DeleteAttribute(), System.Xml.DocumentXPathNavigator.DeleteToFollowingSibling(), System.Xml.DocumentXPathNavigator.OwnerNode(), System.Xml.DocumentXPathNavigator.ResetPosition(), System.source, System.Xml.DocumentXPathNavigator.TextEnd(), and System.SR.Xpn_BadPosition.