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

◆ HasAttributes

override bool System.Xml.DocumentXPathNavigator.HasAttributes
get

Definition at line 164 of file DocumentXPathNavigator.cs.

165 {
166 get
167 {
168 if (_source is XmlElement { HasAttributes: not false } xmlElement)
169 {
170 XmlAttributeCollection attributes = xmlElement.Attributes;
171 for (int i = 0; i < attributes.Count; i++)
172 {
173 XmlAttribute xmlAttribute = attributes[i];
174 if (!xmlAttribute.IsNamespace)
175 {
176 return true;
177 }
178 }
179 }
180 return false;
181 }
182 }

Referenced by System.Xml.DocumentXPathNavigator.GetNamespaceManager(), System.Xml.DocumentXPathNavigator.MoveToAttribute(), and System.Xml.DocumentXPathNavigator.MoveToFirstAttribute().