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

◆ GetElementSibling()

static bool MS.Internal.Xml.Cache.XPathNodeHelper.GetElementSibling ( ref XPathNode[] pageNode,
ref int idxNode,
string localName,
string namespaceName )
inlinestatic

Definition at line 135 of file XPathNodeHelper.cs.

136 {
137 XPathNode[] pageNode2 = pageNode;
138 int num = idxNode;
139 if (pageNode2[num].NodeType != XPathNodeType.Attribute)
140 {
141 while (true)
142 {
143 num = pageNode2[num].GetSibling(out pageNode2);
144 if (num == 0)
145 {
146 break;
147 }
148 if (pageNode2[num].ElementMatch(localName, namespaceName))
149 {
150 pageNode = pageNode2;
151 idxNode = num;
152 return true;
153 }
154 }
155 }
156 return false;
157 }

References MS.Internal.Xml.Cache.XPathNode.GetSibling().

Referenced by MS.Internal.Xml.Cache.XPathDocumentNavigator.MoveToNext().