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

◆ this[string localName, string? namespaceURI]

XmlAttribute? System.Xml.XmlAttributeCollection.this[string localName, string? namespaceURI]
get

Definition at line 44 of file XmlAttributeCollection.cs.

45 {
46 get
47 {
48 int hashCode = XmlName.GetHashCode(localName);
49 for (int i = 0; i < nodes.Count; i++)
50 {
51 XmlAttribute xmlAttribute = (XmlAttribute)nodes[i];
52 if (hashCode == xmlAttribute.LocalNameHash && localName == xmlAttribute.LocalName && namespaceURI == xmlAttribute.NamespaceURI)
53 {
54 return xmlAttribute;
55 }
56 }
57 return null;
58 }
59 }