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

◆ MoveToAttribute() [2/4]

override bool System.Xml.Linq.XNodeReader.MoveToAttribute ( string localName,
string namespaceName )
inline

Definition at line 656 of file XNodeReader.cs.

657 {
658 if (!IsInteractive)
659 {
660 return false;
661 }
663 if (elementInAttributeScope != null)
664 {
665 if (localName == "xmlns")
666 {
667 if (namespaceName != null && namespaceName.Length == 0)
668 {
669 return false;
670 }
671 if (namespaceName == "http://www.w3.org/2000/xmlns/")
672 {
673 namespaceName = string.Empty;
674 }
675 }
676 XAttribute xAttribute = elementInAttributeScope.lastAttr;
677 if (xAttribute != null)
678 {
679 do
680 {
681 xAttribute = xAttribute.next;
682 if (xAttribute.Name.LocalName == localName && xAttribute.Name.NamespaceName == namespaceName)
683 {
685 {
686 return false;
687 }
689 _parent = null;
690 return true;
691 }
692 }
693 while (xAttribute != elementInAttributeScope.lastAttr);
694 }
695 }
696 return false;
697 }
bool IsDuplicateNamespaceAttribute(XAttribute candidateAttribute)
XElement GetElementInAttributeScope()
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.IsDuplicateNamespaceAttribute(), System.Xml.Linq.XNodeReader.IsInteractive, and System.Xml.Linq.XAttribute.next.