C# Class System.Dynamic.DynamicMetaObject

Represents the dynamic binding and a binding logic of an object participating in the dynamic binding.
Show file Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
BindBinaryOperation ( BinaryOperationBinder binder, DynamicMetaObject arg ) : DynamicMetaObject

Performs the binding of the dynamic binary operation.

BindConvert ( ConvertBinder binder ) : DynamicMetaObject

Performs the binding of the dynamic conversion operation.

BindCreateInstance ( CreateInstanceBinder binder, DynamicMetaObject args ) : DynamicMetaObject

Performs the binding of the dynamic create instance operation.

BindDeleteIndex ( DeleteIndexBinder binder, DynamicMetaObject indexes ) : DynamicMetaObject

Performs the binding of the dynamic delete index operation.

BindDeleteMember ( DeleteMemberBinder binder ) : DynamicMetaObject

Performs the binding of the dynamic delete member operation.

BindGetIndex ( GetIndexBinder binder, DynamicMetaObject indexes ) : DynamicMetaObject

Performs the binding of the dynamic get index operation.

BindGetMember ( GetMemberBinder binder ) : DynamicMetaObject

Performs the binding of the dynamic get member operation.

BindInvoke ( InvokeBinder binder, DynamicMetaObject args ) : DynamicMetaObject

Performs the binding of the dynamic invoke operation.

BindInvokeMember ( InvokeMemberBinder binder, DynamicMetaObject args ) : DynamicMetaObject

Performs the binding of the dynamic invoke member operation.

BindSetIndex ( SetIndexBinder binder, DynamicMetaObject indexes, DynamicMetaObject value ) : DynamicMetaObject

Performs the binding of the dynamic set index operation.

BindSetMember ( SetMemberBinder binder, DynamicMetaObject value ) : DynamicMetaObject

Performs the binding of the dynamic set member operation.

BindUnaryOperation ( UnaryOperationBinder binder ) : DynamicMetaObject

Performs the binding of the dynamic unary operation.

Create ( object value, Expression expression ) : DynamicMetaObject

Creates a meta-object for the specified object.

DynamicMetaObject ( Expression expression, BindingRestrictions restrictions ) : System.Collections.Generic

Initializes a new instance of the DynamicMetaObject class.

DynamicMetaObject ( Expression expression, BindingRestrictions restrictions, object value ) : System.Collections.Generic

Initializes a new instance of the DynamicMetaObject class.

Private Methods

Method Description
GetDynamicMemberNames ( ) : IEnumerable
GetExpressions ( DynamicMetaObject objects ) : System.Linq.Expressions.Expression[]

Returns the list of expressions represented by the DynamicMetaObject instances.

Method Details

BindBinaryOperation() public method

Performs the binding of the dynamic binary operation.
public BindBinaryOperation ( BinaryOperationBinder binder, DynamicMetaObject arg ) : DynamicMetaObject
binder BinaryOperationBinder An instance of the that represents the details of the dynamic operation.
arg DynamicMetaObject An instance of the representing the right hand side of the binary operation.
return DynamicMetaObject

BindConvert() public method

Performs the binding of the dynamic conversion operation.
public BindConvert ( ConvertBinder binder ) : DynamicMetaObject
binder ConvertBinder An instance of the that represents the details of the dynamic operation.
return DynamicMetaObject

BindCreateInstance() public method

Performs the binding of the dynamic create instance operation.
public BindCreateInstance ( CreateInstanceBinder binder, DynamicMetaObject args ) : DynamicMetaObject
binder CreateInstanceBinder An instance of the that represents the details of the dynamic operation.
args DynamicMetaObject An array of instances - arguments to the create instance operation.
return DynamicMetaObject

BindDeleteIndex() public method

Performs the binding of the dynamic delete index operation.
public BindDeleteIndex ( DeleteIndexBinder binder, DynamicMetaObject indexes ) : DynamicMetaObject
binder DeleteIndexBinder An instance of the that represents the details of the dynamic operation.
indexes DynamicMetaObject An array of instances - indexes for the delete index operation.
return DynamicMetaObject

BindDeleteMember() public method

Performs the binding of the dynamic delete member operation.
public BindDeleteMember ( DeleteMemberBinder binder ) : DynamicMetaObject
binder DeleteMemberBinder An instance of the that represents the details of the dynamic operation.
return DynamicMetaObject

BindGetIndex() public method

Performs the binding of the dynamic get index operation.
public BindGetIndex ( GetIndexBinder binder, DynamicMetaObject indexes ) : DynamicMetaObject
binder GetIndexBinder An instance of the that represents the details of the dynamic operation.
indexes DynamicMetaObject An array of instances - indexes for the get index operation.
return DynamicMetaObject

BindGetMember() public method

Performs the binding of the dynamic get member operation.
public BindGetMember ( GetMemberBinder binder ) : DynamicMetaObject
binder GetMemberBinder An instance of the that represents the details of the dynamic operation.
return DynamicMetaObject

BindInvoke() public method

Performs the binding of the dynamic invoke operation.
public BindInvoke ( InvokeBinder binder, DynamicMetaObject args ) : DynamicMetaObject
binder InvokeBinder An instance of the that represents the details of the dynamic operation.
args DynamicMetaObject An array of instances - arguments to the invoke operation.
return DynamicMetaObject

BindInvokeMember() public method

Performs the binding of the dynamic invoke member operation.
public BindInvokeMember ( InvokeMemberBinder binder, DynamicMetaObject args ) : DynamicMetaObject
binder InvokeMemberBinder An instance of the that represents the details of the dynamic operation.
args DynamicMetaObject An array of instances - arguments to the invoke member operation.
return DynamicMetaObject

BindSetIndex() public method

Performs the binding of the dynamic set index operation.
public BindSetIndex ( SetIndexBinder binder, DynamicMetaObject indexes, DynamicMetaObject value ) : DynamicMetaObject
binder SetIndexBinder An instance of the that represents the details of the dynamic operation.
indexes DynamicMetaObject An array of instances - indexes for the set index operation.
value DynamicMetaObject The representing the value for the set index operation.
return DynamicMetaObject

BindSetMember() public method

Performs the binding of the dynamic set member operation.
public BindSetMember ( SetMemberBinder binder, DynamicMetaObject value ) : DynamicMetaObject
binder SetMemberBinder An instance of the that represents the details of the dynamic operation.
value DynamicMetaObject The representing the value for the set member operation.
return DynamicMetaObject

BindUnaryOperation() public method

Performs the binding of the dynamic unary operation.
public BindUnaryOperation ( UnaryOperationBinder binder ) : DynamicMetaObject
binder UnaryOperationBinder An instance of the that represents the details of the dynamic operation.
return DynamicMetaObject

Create() public static method

Creates a meta-object for the specified object.
public static Create ( object value, Expression expression ) : DynamicMetaObject
value object The object to get a meta-object for.
expression System.Linq.Expressions.Expression The expression representing this during the dynamic binding process.
return DynamicMetaObject

DynamicMetaObject() public method

Initializes a new instance of the DynamicMetaObject class.
public DynamicMetaObject ( Expression expression, BindingRestrictions restrictions ) : System.Collections.Generic
expression System.Linq.Expressions.Expression The expression representing this during the dynamic binding process.
restrictions BindingRestrictions The set of binding restrictions under which the binding is valid.
return System.Collections.Generic

DynamicMetaObject() public method

Initializes a new instance of the DynamicMetaObject class.
public DynamicMetaObject ( Expression expression, BindingRestrictions restrictions, object value ) : System.Collections.Generic
expression System.Linq.Expressions.Expression The expression representing this during the dynamic binding process.
restrictions BindingRestrictions The set of binding restrictions under which the binding is valid.
value object The runtime value represented by the .
return System.Collections.Generic