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

◆ GetAttributeNode() [2/4]

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

Definition at line 1703 of file XmlBaseReader.cs.

1704 {
1705 if (localName == null)
1706 {
1707 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("localName"));
1708 }
1709 if (namespaceUri == null)
1710 {
1711 namespaceUri = string.Empty;
1712 }
1714 {
1715 return null;
1716 }
1717 XmlAttributeNode[] attributeNodes = _attributeNodes;
1718 int attributeCount = _attributeCount;
1719 int num = _attributeStart;
1720 for (int i = 0; i < attributeCount; i++)
1721 {
1722 if (++num >= attributeCount)
1723 {
1724 num = 0;
1725 }
1726 XmlAttributeNode xmlAttributeNode = attributeNodes[num];
1727 if (xmlAttributeNode.IsLocalNameAndNamespaceUri(localName, namespaceUri))
1728 {
1729 _attributeStart = num;
1730 return xmlAttributeNode;
1731 }
1732 }
1733 return null;
1734 }
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, and System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError().