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

◆ GetContentSibling() [2/2]

static bool MS.Internal.Xml.Cache.XPathNodeHelper.GetContentSibling ( ref XPathNode[] pageNode,
ref int idxNode,
XPathNodeType typ )
inlinestatic

Definition at line 186 of file XPathNodeHelper.cs.

187 {
188 XPathNode[] pageNode2 = pageNode;
189 int num = idxNode;
190 int contentKindMask = XPathNavigator.GetContentKindMask(typ);
191 if (pageNode2[num].NodeType != XPathNodeType.Attribute)
192 {
193 while (true)
194 {
195 num = pageNode2[num].GetSibling(out pageNode2);
196 if (num == 0)
197 {
198 break;
199 }
200 if (((1 << (int)pageNode2[num].NodeType) & contentKindMask) != 0)
201 {
202 pageNode = pageNode2;
203 idxNode = num;
204 return true;
205 }
206 }
207 }
208 return false;
209 }
static int GetContentKindMask(XPathNodeType type)

References System.Xml.XPath.XPathNavigator.GetContentKindMask(), and MS.Internal.Xml.Cache.XPathNode.GetSibling().