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

◆ MoveNext()

override bool System.Xml.DocumentXPathNodeIterator_ElemDescendants.MoveNext ( )
inline

Definition at line 38 of file DocumentXPathNodeIterator_ElemDescendants.cs.

39 {
40 XmlNode xmlNode;
41 do
42 {
44 {
45 _level++;
46 }
47 else
48 {
49 if (_level == 0)
50 {
51 return false;
52 }
53 while (!_nav.MoveToNext())
54 {
55 _level--;
56 if (_level == 0)
57 {
58 return false;
59 }
60 if (!_nav.MoveToParent())
61 {
62 return false;
63 }
64 }
65 }
66 xmlNode = (XmlNode)_nav.UnderlyingObject;
67 }
68 while (xmlNode.NodeType != XmlNodeType.Element || !Match(xmlNode));
69 _position++;
70 return true;
71 }

References System.Xml.DocumentXPathNodeIterator_ElemDescendants._level, System.Xml.DocumentXPathNodeIterator_ElemDescendants._nav, System.Xml.DocumentXPathNodeIterator_ElemDescendants._position, System.Xml.Dictionary, System.Xml.DocumentXPathNodeIterator_ElemDescendants.Match(), System.Xml.DocumentXPathNavigator.MoveToFirstChild(), System.Xml.DocumentXPathNavigator.MoveToNext(), System.Xml.DocumentXPathNavigator.MoveToParent(), and System.Xml.DocumentXPathNavigator.UnderlyingObject.