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

◆ MoveToFirstAttribute()

override bool System.Xml.DocumentXPathNavigator.MoveToFirstAttribute ( )
inline

Definition at line 317 of file DocumentXPathNavigator.cs.

318 {
319 if (_source is XmlElement { HasAttributes: not false } xmlElement)
320 {
321 XmlAttributeCollection attributes = xmlElement.Attributes;
322 for (int i = 0; i < attributes.Count; i++)
323 {
324 XmlAttribute xmlAttribute = attributes[i];
325 if (!xmlAttribute.IsNamespace)
326 {
329 return true;
330 }
331 }
332 }
333 return false;
334 }

References System.Xml.DocumentXPathNavigator._attributeIndex, System.Xml.DocumentXPathNavigator._source, System.Xml.XmlAttributeCollection.Count, System.Xml.Dictionary, and System.Xml.DocumentXPathNavigator.HasAttributes.