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

◆ MoveToNextAttribute()

override bool System.Xml.Linq.XNodeReader.MoveToNextAttribute ( )
inline

Definition at line 778 of file XNodeReader.cs.

779 {
780 if (!IsInteractive)
781 {
782 return false;
783 }
784 if (_source is XElement xElement)
785 {
786 if (IsEndElement)
787 {
788 return false;
789 }
790 if (xElement.lastAttr != null)
791 {
793 {
796 {
797 return false;
798 }
800 }
801 else
802 {
803 _source = xElement.lastAttr.next;
804 }
805 return true;
806 }
807 return false;
808 }
809 XAttribute xAttribute = _source as XAttribute;
810 if (xAttribute == null)
811 {
812 xAttribute = _parent as XAttribute;
813 }
814 if (xAttribute != null && xAttribute.parent != null && ((XElement)xAttribute.parent).lastAttr != xAttribute)
815 {
817 {
820 {
821 return false;
822 }
824 }
825 else
826 {
827 _source = xAttribute.next;
828 }
829 _parent = null;
830 return true;
831 }
832 return false;
833 }
XAttribute GetFirstNonDuplicateNamespaceAttribute(XAttribute candidate)
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.GetFirstNonDuplicateNamespaceAttribute(), System.Xml.Linq.XNodeReader.IsEndElement, and System.Xml.Linq.XNodeReader.IsInteractive.