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

◆ MoveToFollowing() [2/4]

virtual bool System.Xml.XPath.XPathNavigator.MoveToFollowing ( string localName,
string namespaceURI,
XPathNavigator? end )
inlinevirtualinherited

Definition at line 999 of file XPathNavigator.cs.

1000 {
1001 XPathNavigator other = Clone();
1002 if (end != null)
1003 {
1004 XPathNodeType nodeType = end.NodeType;
1005 if ((uint)(nodeType - 2) <= 1u)
1006 {
1007 end = end.Clone();
1008 end.MoveToNonDescendant();
1009 }
1010 }
1011 XPathNodeType nodeType2 = NodeType;
1012 if ((uint)(nodeType2 - 2) <= 1u && !MoveToParent())
1013 {
1014 return false;
1015 }
1016 do
1017 {
1018 if (!MoveToFirstChild())
1019 {
1020 while (!MoveToNext())
1021 {
1022 if (!MoveToParent())
1023 {
1024 MoveTo(other);
1025 return false;
1026 }
1027 }
1028 }
1029 if (end != null && IsSamePosition(end))
1030 {
1031 MoveTo(other);
1032 return false;
1033 }
1034 }
1035 while (NodeType != XPathNodeType.Element || localName != LocalName || namespaceURI != NamespaceURI);
1036 return true;
1037 }
bool MoveTo(XPathNavigator other)
bool IsSamePosition(XPathNavigator other)

References System.Xml.XPath.XPathNavigator.Clone(), System.Xml.XPath.XPathNavigator.IsSamePosition(), System.Xml.XPath.XPathNavigator.LocalName, System.Xml.XPath.XPathNavigator.MoveTo(), System.Xml.XPath.XPathNavigator.MoveToFirstChild(), System.Xml.XPath.XPathNavigator.MoveToNext(), System.Xml.XPath.XPathNavigator.MoveToNonDescendant(), System.Xml.XPath.XPathNavigator.MoveToParent(), System.Xml.XPath.XPathNavigator.NamespaceURI, System.Xml.XPath.XPathNavigator.NodeType, and System.other.