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

◆ DeleteRange()

override void System.Xml.DocumentXPathNavigator.DeleteRange ( XPathNavigator lastSiblingToDelete)
inlinevirtual

Reimplemented from System.Xml.XPath.XPathNavigator.

Definition at line 1460 of file DocumentXPathNavigator.cs.

1461 {
1463 {
1464 if (lastSiblingToDelete == null)
1465 {
1466 throw new ArgumentNullException("lastSiblingToDelete");
1467 }
1468 throw new NotSupportedException();
1469 }
1470 CalibrateText();
1471 documentXPathNavigator.CalibrateText();
1472 XmlNode source = _source;
1473 XmlNode xmlNode = documentXPathNavigator._source;
1474 if (source == xmlNode)
1475 {
1476 switch (source.NodeType)
1477 {
1478 case XmlNodeType.Attribute:
1479 {
1480 XmlAttribute xmlAttribute = (XmlAttribute)source;
1481 if (!xmlAttribute.IsNamespace)
1482 {
1483 XmlNode xmlNode2 = OwnerNode(xmlAttribute);
1485 if (xmlNode2 != null)
1486 {
1488 }
1489 break;
1490 }
1491 goto default;
1492 }
1493 case XmlNodeType.Text:
1494 case XmlNodeType.CDATA:
1495 case XmlNodeType.Whitespace:
1496 case XmlNodeType.SignificantWhitespace:
1498 goto case XmlNodeType.Element;
1499 case XmlNodeType.Element:
1500 case XmlNodeType.ProcessingInstruction:
1501 case XmlNodeType.Comment:
1502 {
1503 XmlNode xmlNode2 = OwnerNode(source);
1505 if (xmlNode2 != null)
1506 {
1508 }
1509 break;
1510 }
1511 default:
1513 }
1514 }
1515 else
1516 {
1517 if (xmlNode.IsText)
1518 {
1520 }
1522 {
1524 }
1525 XmlNode xmlNode3 = OwnerNode(source);
1527 if (xmlNode3 != null)
1528 {
1530 }
1531 }
1532 }
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 bool IsFollowingSibling(XmlNode left, [NotNullWhen(true)] XmlNode right)
static void DeleteAttribute(XmlAttribute attribute, int index)
DocumentXPathNavigator(XmlDocument document, XmlNode node)

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