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

◆ CheckAttributePosition()

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

Definition at line 1678 of file DocumentXPathNavigator.cs.

1679 {
1680 XmlElement ownerElement = attribute.OwnerElement;
1681 if (ownerElement != null)
1682 {
1683 attributes = ownerElement.Attributes;
1684 if (index >= 0 && index < attributes.Count && attribute == attributes[index])
1685 {
1686 return true;
1687 }
1688 }
1689 else
1690 {
1691 attributes = null;
1692 }
1693 return false;
1694 }

References System.Collections.Generic.Dictionary< TKey, TValue >.Count, and System.index.

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