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

◆ this[object key]

object? IDictionary. System.Collections.ObjectModel.ReadOnlyDictionary< TKey, TValue >.this[object key]
getsetprivate

Implements System.Collections.IDictionary.

Definition at line 229 of file ReadOnlyDictionary.cs.

230 {
231 get
232 {
233 if (!IsCompatibleKey(key))
234 {
235 return null;
236 }
237 if (m_dictionary.TryGetValue((TKey)key, out var value))
238 {
239 return value;
240 }
241 return null;
242 }
243 set
244 {
245 throw new NotSupportedException(System.SR.NotSupported_ReadOnlyCollection);
246 }
247 }
readonly IDictionary< TKey, TValue > m_dictionary
static string NotSupported_ReadOnlyCollection
Definition SR.cs:28
Definition SR.cs:7