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

◆ GetNamespaceByIndex()

static string System.Xml.XPath.XPathNavigatorReader.GetNamespaceByIndex ( XPathNavigator nav,
int index,
out int count )
inlinestaticprivate

Definition at line 496 of file XPathNavigatorReader.cs.

497 {
498 string value = nav.Value;
499 string result = null;
500 if (nav.MoveToNextNamespace(XPathNamespaceScope.Local))
501 {
502 result = GetNamespaceByIndex(nav, index, out count);
503 }
504 else
505 {
506 count = 0;
507 }
508 if (count == index)
509 {
510 result = value;
511 }
512 count++;
513 return result;
514 }
static string GetNamespaceByIndex(XPathNavigator nav, int index, out int count)

References System.count, System.Xml.XPath.XPathNavigatorReader.GetNamespaceByIndex(), System.index, System.Xml.XPath.XPathNavigator.MoveToNextNamespace(), System.value, and System.Xml.XPath.XPathItem.Value.

Referenced by System.Xml.XPath.XPathNavigatorReader.GetAttribute(), and System.Xml.XPath.XPathNavigatorReader.GetNamespaceByIndex().