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

◆ GetAttribute() [1/4]

override string System.Xml.Linq.XNodeReader.GetAttribute ( int index)
inline

Definition at line 571 of file XNodeReader.cs.

572 {
573 if (!IsInteractive)
574 {
576 }
577 if (index < 0)
578 {
579 throw new ArgumentOutOfRangeException("index");
580 }
582 if (elementInAttributeScope != null)
583 {
584 XAttribute xAttribute = elementInAttributeScope.lastAttr;
585 if (xAttribute != null)
586 {
587 do
588 {
589 xAttribute = xAttribute.next;
591 {
592 return xAttribute.Value;
593 }
594 }
595 while (xAttribute != elementInAttributeScope.lastAttr);
596 }
597 }
598 throw new ArgumentOutOfRangeException("index");
599 }
static string InvalidOperation_ExpectedInteractive
Definition SR.cs:46
Definition SR.cs:7
bool IsDuplicateNamespaceAttribute(XAttribute candidateAttribute)
XElement GetElementInAttributeScope()
readonly bool _omitDuplicateNamespaces

References System.Xml.Linq.XNodeReader._omitDuplicateNamespaces, System.Xml.Dictionary, System.Xml.Linq.XNodeReader.GetElementInAttributeScope(), System.index, System.SR.InvalidOperation_ExpectedInteractive, System.Xml.Linq.XNodeReader.IsDuplicateNamespaceAttribute(), System.Xml.Linq.XNodeReader.IsInteractive, System.Xml.Linq.XAttribute.next, and System.Xml.Linq.XAttribute.Value.