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

◆ BindDeleteMember()

override DynamicMetaObject System.Dynamic.ExpandoObject.MetaExpando.BindDeleteMember ( DeleteMemberBinder binder)
inlinevirtual

Reimplemented from System.Dynamic.DynamicMetaObject.

Definition at line 319 of file ExpandoObject.cs.

320 {
322 int valueIndex = Value.Class.GetValueIndex(binder.Name, binder.IgnoreCase, Value);
324 DynamicMetaObject dynamicMetaObject = binder.FallbackDeleteMember(this);
326 return AddDynamicTestAndDefer(binder, Value.Class, null, succeeds);
327 }
DynamicMetaObject(Expression expression, BindingRestrictions restrictions)
DynamicMetaObject AddDynamicTestAndDefer(DynamicMetaObjectBinder binder, ExpandoClass klass, ExpandoClass originalClass, DynamicMetaObject succeeds)
static readonly MethodInfo s_expandoTryDeleteValue
static void RequiresNotNull(object value, string paramName)
static ConstantExpression Constant(object? value)
static MethodCallExpression Call(MethodInfo method)
static UnaryExpression Not(Expression expression)
static ConditionalExpression IfThen(Expression test, Expression ifTrue)
static ConstantExpression Constant(bool value)
Definition Utils.cs:64

References System.Dynamic.DynamicMetaObject.DynamicMetaObject(), System.Dynamic.ExpandoObject.MetaExpando.AddDynamicTestAndDefer(), System.Linq.Expressions.Expression< TDelegate >.Call(), System.Linq.Expressions.Utils.Constant(), System.Linq.Expressions.Expression< TDelegate >.Constant(), System.Dynamic.ExpandoObject.MetaExpando.GetLimitedSelf(), System.Linq.Expressions.Expression< TDelegate >.IfThen(), System.Linq.Expressions.Expression< TDelegate >.Not(), System.Dynamic.Utils.ContractUtils.RequiresNotNull(), System.Dynamic.ExpandoObject.s_expandoTryDeleteValue, and System.Dynamic.ExpandoObject.MetaExpando.Value.