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

◆ MoveToAttribute() [3/4]

override bool System.Xml.Linq.XNodeReader.MoveToAttribute ( string name)
inline

Definition at line 623 of file XNodeReader.cs.

624 {
625 if (!IsInteractive)
626 {
627 return false;
628 }
630 if (elementInAttributeScope != null)
631 {
633 XAttribute xAttribute = elementInAttributeScope.lastAttr;
634 if (xAttribute != null)
635 {
636 do
637 {
638 xAttribute = xAttribute.next;
639 if (xAttribute.Name.LocalName == localName && xAttribute.Name.NamespaceName == namespaceName)
640 {
642 {
643 return false;
644 }
646 _parent = null;
647 return true;
648 }
649 }
650 while (xAttribute != elementInAttributeScope.lastAttr);
651 }
652 }
653 return false;
654 }
bool IsDuplicateNamespaceAttribute(XAttribute candidateAttribute)
XElement GetElementInAttributeScope()
static void GetNameInAttributeScope(string qualifiedName, XElement e, out string localName, out string namespaceName)
readonly bool _omitDuplicateNamespaces

References System.Xml.Linq.XNodeReader._omitDuplicateNamespaces, System.Xml.Linq.XNodeReader._parent, System.Xml.Linq.XNodeReader._source, System.Xml.Dictionary, System.Xml.Linq.XNodeReader.GetElementInAttributeScope(), System.Xml.Linq.XNodeReader.GetNameInAttributeScope(), System.Xml.Linq.XNodeReader.IsDuplicateNamespaceAttribute(), System.Xml.Linq.XNodeReader.IsInteractive, and System.Xml.Linq.XAttribute.next.