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

◆ SelectDescendants() [2/2]

override XPathNodeIterator System.Xml.DocumentXPathNavigator.SelectDescendants ( XPathNodeType nt,
bool includeSelf )
inlinevirtual

Reimplemented from System.Xml.XPath.XPathNavigator.

Definition at line 1318 of file DocumentXPathNavigator.cs.

1319 {
1320 if (nt == XPathNodeType.Element)
1321 {
1322 XmlNodeType nodeType = _source.NodeType;
1323 if (nodeType != XmlNodeType.Document && nodeType != XmlNodeType.Element)
1324 {
1325 return new DocumentXPathNodeIterator_Empty(this);
1326 }
1327 if (includeSelf)
1328 {
1329 return new DocumentXPathNodeIterator_AllElemChildren_AndSelf(this);
1330 }
1331 return new DocumentXPathNodeIterator_AllElemChildren(this);
1332 }
1333 return base.SelectDescendants(nt, includeSelf);
1334 }
XmlNodeType NodeType
Definition XmlNode.cs:73

References System.Xml.DocumentXPathNavigator._source, and System.Xml.XmlNode.NodeType.