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

◆ TryLookup() [1/3]

bool System.Xml.XmlBinaryReaderSession.TryLookup ( int key,
[NotNullWhen(true)] out XmlDictionaryString? result )
inline

Implements System.Xml.IXmlDictionary.

Definition at line 55 of file XmlBinaryReaderSession.cs.

56 {
57 if (_strings != null && key >= 0 && key < _strings.Length)
58 {
59 result = _strings[key];
60 return result != null;
61 }
62 if (key >= 2048 && _stringDict != null)
63 {
64 return _stringDict.TryGetValue(key, out result);
65 }
66 result = null;
67 return false;
68 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
Dictionary< int, XmlDictionaryString > _stringDict

References System.Xml.XmlBinaryReaderSession._stringDict, System.Xml.XmlBinaryReaderSession._strings, System.key, and System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue().

Referenced by System.Xml.XmlBinaryReaderSession.Add(), and System.Xml.XmlBufferReader.ReadDictionaryKey().