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

◆ LookupNamespaceDecl()

int System.Xml.XmlNamespaceManager.LookupNamespaceDecl ( string prefix)
inlineprivateinherited

Definition at line 237 of file XmlNamespaceManager.cs.

238 {
239 if (_useHashtable)
240 {
242 {
243 while (value != -1 && _nsdecls[value].uri == null)
244 {
246 }
247 return value;
248 }
249 return -1;
250 }
251 for (int num = _lastDecl; num >= 0; num--)
252 {
253 if ((object)_nsdecls[num].prefix == prefix && _nsdecls[num].uri != null)
254 {
255 return num;
256 }
257 }
258 for (int num2 = _lastDecl; num2 >= 0; num2--)
259 {
260 if (string.Equals(_nsdecls[num2].prefix, prefix) && _nsdecls[num2].uri != null)
261 {
262 return num2;
263 }
264 }
265 return -1;
266 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
Dictionary< string, int > _hashTable

References System.Xml.XmlNamespaceManager._hashTable, System.Xml.XmlNamespaceManager._lastDecl, System.Xml.XmlNamespaceManager._nsdecls, System.Xml.XmlNamespaceManager._useHashtable, System.Xml.Dictionary, System.prefix, System.Xml.XmlNamespaceManager.NamespaceDeclaration.previousNsIndex, System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.

Referenced by System.Xml.XmlNamespaceManager.AddNamespace(), System.Xml.XmlNamespaceManager.LookupNamespace(), and System.Xml.XmlNamespaceManager.RemoveNamespace().