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

◆ GetAttribute()

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

Definition at line 251 of file XPathNodeHelper.cs.

252 {
253 XPathNode[] pageNode2 = pageNode;
254 int idxNode2 = idxNode;
255 if (pageNode2[idxNode2].HasAttribute)
256 {
257 GetChild(ref pageNode2, ref idxNode2);
258 do
259 {
260 if (pageNode2[idxNode2].NameMatch(localName, namespaceName))
261 {
262 pageNode = pageNode2;
263 idxNode = idxNode2;
264 return true;
265 }
266 idxNode2 = pageNode2[idxNode2].GetSibling(out pageNode2);
267 }
268 while (idxNode2 != 0 && pageNode2[idxNode2].NodeType == XPathNodeType.Attribute);
269 }
270 return false;
271 }
static void GetChild(ref XPathNode[] pageNode, ref int idxNode)

References MS.Internal.Xml.Cache.XPathNodeHelper.GetChild().

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