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

◆ ResetAttributePosition()

static bool System.Xml.DocumentXPathNavigator.ResetAttributePosition ( XmlAttribute attribute,
[NotNullWhen(true)] XmlAttributeCollection attributes,
out int index )
inlinestaticprivate

Definition at line 1661 of file DocumentXPathNavigator.cs.

1662 {
1663 if (attributes != null)
1664 {
1665 for (int i = 0; i < attributes.Count; i++)
1666 {
1667 if (attribute == attributes[i])
1668 {
1669 index = i;
1670 return true;
1671 }
1672 }
1673 }
1674 index = 0;
1675 return false;
1676 }

References System.Xml.XmlAttributeCollection.Count, and System.index.

Referenced by System.Xml.DocumentXPathNavigator.DeleteAttribute(), System.Xml.DocumentXPathNavigator.MoveToNextAttribute(), System.Xml.DocumentXPathNavigator.MoveToNextNamespace(), and System.Xml.DocumentXPathNavigator.ResetPosition().