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

◆ GetAttribute() [1/4]

override string System.Xml.XPath.XPathNavigatorReader.GetAttribute ( int index)
inline

Definition at line 516 of file XPathNavigatorReader.cs.

517 {
518 if (index >= 0)
519 {
520 XPathNavigator elemNav = GetElemNav();
521 if (elemNav != null)
522 {
523 if (elemNav.MoveToFirstNamespace(XPathNamespaceScope.Local))
524 {
525 int count;
527 if (namespaceByIndex != null)
528 {
529 return namespaceByIndex;
530 }
531 index -= count;
532 elemNav.MoveToParent();
533 }
534 if (elemNav.MoveToFirstAttribute())
535 {
536 do
537 {
538 if (index == 0)
539 {
540 return elemNav.Value;
541 }
542 index--;
543 }
544 while (elemNav.MoveToNextAttribute());
545 }
546 }
547 }
548 throw new ArgumentOutOfRangeException("index");
549 }
static string GetNamespaceByIndex(XPathNavigator nav, int index, out int count)

References System.count, System.Xml.Dictionary, System.Xml.XPath.XPathNavigatorReader.GetElemNav(), System.Xml.XPath.XPathNavigatorReader.GetNamespaceByIndex(), and System.index.