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
]
get
set
private
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
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Collections.ObjectModel.ReadOnlyDictionary.IsCompatibleKey
static bool IsCompatibleKey(object key)
Definition
ReadOnlyDictionary.cs:327
System.Collections.ObjectModel.ReadOnlyDictionary.m_dictionary
readonly IDictionary< TKey, TValue > m_dictionary
Definition
ReadOnlyDictionary.cs:185
System.SR.NotSupported_ReadOnlyCollection
static string NotSupported_ReadOnlyCollection
Definition
SR.cs:28
System.SR
Definition
SR.cs:7
System.ExceptionArgument.value
@ value
System.ExceptionArgument.key
@ key
System
Definition
BlockingCollection.cs:8
System
Collections
ObjectModel
ReadOnlyDictionary
Generated by
1.10.0