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

◆ GetAttributeNode() [4/4]

XmlAttributeNode System.Xml.XmlBaseReader.GetAttributeNode ( XmlDictionaryString localName,
XmlDictionaryString namespaceUri )
inlineprivateinherited

Definition at line 1736 of file XmlBaseReader.cs.

1737 {
1738 if (localName == null)
1739 {
1740 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("localName"));
1741 }
1742 if (namespaceUri == null)
1743 {
1744 namespaceUri = XmlDictionaryString.Empty;
1745 }
1747 {
1748 return null;
1749 }
1750 XmlAttributeNode[] attributeNodes = _attributeNodes;
1751 int attributeCount = _attributeCount;
1752 int num = _attributeStart;
1753 for (int i = 0; i < attributeCount; i++)
1754 {
1755 if (++num >= attributeCount)
1756 {
1757 num = 0;
1758 }
1759 XmlAttributeNode xmlAttributeNode = attributeNodes[num];
1760 if (xmlAttributeNode.IsLocalNameAndNamespaceUri(localName, namespaceUri))
1761 {
1762 _attributeStart = num;
1763 return xmlAttributeNode;
1764 }
1765 }
1766 return null;
1767 }
XmlAttributeNode[] _attributeNodes

References System.Xml.XmlBaseReader.NamespaceManager._attributeCount, System.Xml.XmlBaseReader._attributeNodes, System.Xml.XmlBaseReader._attributeStart, System.Xml.XmlBaseReader._node, System.Xml.XmlBaseReader.XmlNode.CanGetAttribute, System.Xml.Dictionary, System.Xml.XmlDictionaryString.Empty, and System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError().