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

◆ MoveToFirstChild()

override bool System.Xml.DocumentXPathNavigator.MoveToFirstChild ( )
inline

Definition at line 744 of file DocumentXPathNavigator.cs.

745 {
746 XmlNode xmlNode;
747 switch (_source.NodeType)
748 {
749 case XmlNodeType.Element:
751 if (xmlNode == null)
752 {
753 return false;
754 }
755 break;
756 case XmlNodeType.Document:
757 case XmlNodeType.DocumentFragment:
759 if (xmlNode == null)
760 {
761 return false;
762 }
763 while (!IsValidChild(_source, xmlNode))
764 {
766 if (xmlNode == null)
767 {
768 return false;
769 }
770 }
771 break;
772 default:
773 return false;
774 }
776 return true;
777 }
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(), and System.Xml.XmlNode.NodeType.

Referenced by System.Xml.DocumentXPathNodeIterator_ElemDescendants.MoveNext().