Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
this[string key]
object?
IDictionary
<
string
, object>. System.Dynamic.ExpandoObject.this[
string
key
]
get
set
private
Definition at line
473
of file
ExpandoObject.cs
.
474
{
475
get
476
{
477
if
(!
TryGetValueForKey
(
key
,
out
var
value
))
478
{
479
throw
Error
.
KeyDoesNotExistInExpando
(
key
);
480
}
481
return
value
;
482
}
483
set
484
{
485
ContractUtils
.
RequiresNotNull
(
key
,
"key"
);
486
TrySetValue
(
null
, -1,
value
,
key
,
ignoreCase
:
false
,
add
:
false
);
487
}
488
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Dynamic.ExpandoObject.TrySetValue
void TrySetValue(object indexClass, int index, object value, string name, bool ignoreCase, bool add)
Definition
ExpandoObject.cs:538
System.Dynamic.ExpandoObject.TryGetValueForKey
bool TryGetValueForKey(string key, out object value)
Definition
ExpandoObject.cs:656
System.Dynamic.Utils.ContractUtils.RequiresNotNull
static void RequiresNotNull(object value, string paramName)
Definition
ContractUtils.cs:20
System.Dynamic.Utils.ContractUtils
Definition
ContractUtils.cs:8
System.Linq.Expressions.Error.KeyDoesNotExistInExpando
static Exception KeyDoesNotExistInExpando(object p0)
Definition
Error.cs:33
System.Linq.Expressions.Error
Definition
Error.cs:7
System.ExceptionArgument.value
@ value
System.ExceptionArgument.key
@ key
System
Dynamic
ExpandoObject
Generated by
1.10.0