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

◆ IndexOfLocalName() [1/2]

override int System.Xml.XmlBaseReader.IndexOfLocalName ( string[] localNames,
string namespaceUri )
inlinevirtualinherited

Reimplemented from System.Xml.XmlDictionaryReader.

Definition at line 2126 of file XmlBaseReader.cs.

2127 {
2128 if (localNames == null)
2129 {
2131 }
2132 if (namespaceUri == null)
2133 {
2135 }
2136 QNameType qNameType = _node.QNameType;
2137 if (_node.IsNamespaceUri(namespaceUri))
2138 {
2139 if (qNameType == QNameType.Normal)
2140 {
2141 StringHandle localName = _node.LocalName;
2142 for (int i = 0; i < localNames.Length; i++)
2143 {
2144 string text = localNames[i];
2145 if (text == null)
2146 {
2148 }
2149 if (localName == text)
2150 {
2151 return i;
2152 }
2153 }
2154 }
2155 else
2156 {
2157 PrefixHandle prefix = _node.Namespace.Prefix;
2158 for (int j = 0; j < localNames.Length; j++)
2159 {
2160 string text2 = localNames[j];
2161 if (text2 == null)
2162 {
2164 }
2165 if (prefix == text2)
2166 {
2167 return j;
2168 }
2169 }
2170 }
2171 }
2172 return -1;
2173 }

References System.Xml.XmlBaseReader._node, System.Xml.Dictionary, System.Xml.XmlBaseReader.XmlNode.IsNamespaceUri(), System.Xml.XmlBaseReader.XmlNode.LocalName, System.Xml.XmlBaseReader.XmlNode.Namespace, System.prefix, System.Xml.XmlBaseReader.Namespace.Prefix, System.Xml.XmlBaseReader.XmlNode.QNameType, System.text, and System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull().