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

◆ GetName()

XmlName System.Xml.DomNameTable.GetName ( string prefix,
string localName,
string ns,
IXmlSchemaInfo schemaInfo )
inline

Definition at line 25 of file DomNameTable.cs.

26 {
27 if (prefix == null)
28 {
29 prefix = string.Empty;
30 }
31 if (ns == null)
32 {
33 ns = string.Empty;
34 }
35 int hashCode = XmlName.GetHashCode(localName);
36 for (XmlName xmlName = _entries[hashCode & _mask]; xmlName != null; xmlName = xmlName.next)
37 {
38 if (xmlName.HashCode == hashCode && ((object)xmlName.LocalName == localName || xmlName.LocalName.Equals(localName)) && ((object)xmlName.Prefix == prefix || xmlName.Prefix.Equals(prefix)) && ((object)xmlName.NamespaceURI == ns || xmlName.NamespaceURI.Equals(ns)) && xmlName.Equals(schemaInfo))
39 {
40 return xmlName;
41 }
42 }
43 return null;
44 }

References System.Xml.DomNameTable._entries, System.Xml.DomNameTable._mask, System.Xml.Dictionary, System.Xml.XmlName.GetHashCode(), System.Xml.XmlName.next, and System.prefix.

Referenced by System.Xml.XmlDocument.GetXmlName().