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

◆ MoveToFirst()

override bool System.Xml.DocumentXPathNavigator.MoveToFirst ( )
inlinevirtual

Reimplemented from System.Xml.XPath.XPathNavigator.

Definition at line 720 of file DocumentXPathNavigator.cs.

721 {
722 if (_source.NodeType == XmlNodeType.Attribute)
723 {
724 return false;
725 }
726 XmlNode xmlNode = ParentNode(_source);
727 if (xmlNode == null)
728 {
729 return false;
730 }
731 XmlNode xmlNode2 = FirstChild(xmlNode);
732 while (!IsValidChild(xmlNode, xmlNode2))
733 {
735 if (xmlNode2 == null)
736 {
737 return false;
738 }
739 }
741 return true;
742 }
static bool IsValidChild(XmlNode parent, XmlNode child)
XmlNodeType NodeType
Definition XmlNode.cs:73

References System.Xml.DocumentXPathNavigator._source, System.Xml.Dictionary, System.Xml.DocumentXPathNavigator.FirstChild(), System.Xml.DocumentXPathNavigator.IsValidChild(), System.Xml.DocumentXPathNavigator.NextSibling(), System.Xml.XmlNode.NodeType, and System.Xml.DocumentXPathNavigator.ParentNode().