mscorlib(4.0.0.0) API with additions
DeleteMemberBinder.cs
1 using System.Dynamic.Utils;
2 
3 namespace System.Dynamic
4 {
6  [global::__DynamicallyInvokable]
8  {
9  private readonly string _name;
10 
11  private readonly bool _ignoreCase;
12 
15  [global::__DynamicallyInvokable]
16  public string Name
17  {
18  [global::__DynamicallyInvokable]
19  get
20  {
21  return _name;
22  }
23  }
24 
27  [global::__DynamicallyInvokable]
28  public bool IgnoreCase
29  {
30  [global::__DynamicallyInvokable]
31  get
32  {
33  return _ignoreCase;
34  }
35  }
36 
39  [global::__DynamicallyInvokable]
40  public sealed override Type ReturnType
41  {
42  [global::__DynamicallyInvokable]
43  get
44  {
45  return typeof(void);
46  }
47  }
48 
49  internal sealed override bool IsStandardBinder => true;
50 
54  [global::__DynamicallyInvokable]
55  protected DeleteMemberBinder(string name, bool ignoreCase)
56  {
57  ContractUtils.RequiresNotNull(name, "name");
58  _name = name;
59  _ignoreCase = ignoreCase;
60  }
61 
65  [global::__DynamicallyInvokable]
67  {
68  return FallbackDeleteMember(target, null);
69  }
70 
75  [global::__DynamicallyInvokable]
76  public abstract DynamicMetaObject FallbackDeleteMember(DynamicMetaObject target, DynamicMetaObject errorSuggestion);
77 
82  [global::__DynamicallyInvokable]
83  public sealed override DynamicMetaObject Bind(DynamicMetaObject target, DynamicMetaObject[] args)
84  {
85  ContractUtils.RequiresNotNull(target, "target");
86  ContractUtils.Requires(args == null || args.Length == 0);
87  return target.BindDeleteMember(this);
88  }
89  }
90 }
DeleteMemberBinder(string name, bool ignoreCase)
Initializes a new instance of the T:System.Dynamic.DeleteIndexBinder.
bool IgnoreCase
Gets the value indicating if the string comparison should ignore the case of the member name.
virtual DynamicMetaObject BindDeleteMember(DeleteMemberBinder binder)
Performs the binding of the dynamic delete member operation.
string Name
Gets the name of the member to delete.
Represents the dynamic binding and a binding logic of an object participating in the dynamic binding.
Definition: __Canon.cs:3
sealed override DynamicMetaObject Bind(DynamicMetaObject target, DynamicMetaObject[] args)
Performs the binding of the dynamic delete member operation.
DynamicMetaObject FallbackDeleteMember(DynamicMetaObject target)
Performs the binding of the dynamic delete member operation if the target dynamic object cannot bind.
sealed override Type ReturnType
The result type of the operation.
Represents type declarations: class types, interface types, array types, value types,...
Definition: Type.cs:18
The dynamic call site binder that participates in the T:System.Dynamic.DynamicMetaObject binding prot...
Represents the dynamic delete member operation at the call site, providing the binding semantic and t...