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

◆ DuplicateNS()

bool System.Xml.XPathNodePointer.DuplicateNS ( XmlBoundElement endElem,
string lname )
inlineprivate

Definition at line 1434 of file XPathNodePointer.cs.

1435 {
1436 if (_parentOfNS == null || endElem == null)
1437 {
1438 return false;
1439 }
1440 XmlBoundElement xmlBoundElement = _parentOfNS;
1441 XmlNode xmlNode = null;
1442 while (xmlBoundElement != null && xmlBoundElement != endElem)
1443 {
1444 if (GetNamespace(xmlBoundElement, lname) != null)
1445 {
1446 return true;
1447 }
1449 do
1450 {
1452 }
1453 while (xmlNode != null && xmlNode.NodeType != XmlNodeType.Element);
1454 xmlBoundElement = xmlNode as XmlBoundElement;
1455 }
1456 return false;
1457 }
string GetNamespace(XmlBoundElement be, string name)
override? XmlNode ParentNode
Definition XmlElement.cs:47

References System.Xml.XmlNode.NodeType, and System.Xml.XmlNode.ParentNode.