C# Class ExposedObject.MetaObject

Represents the dynamic binding and a binding logic of an object participating in the dynamic binding.
Inheritance: System.Dynamic.DynamicMetaObject
Mostrar archivo Open project: Cognifide/ExposedObject

Public Methods

Method Description
BindGetMember ( GetMemberBinder binder ) : DynamicMetaObject

Performs the binding of the dynamic get member operation.

BindInvokeMember ( InvokeMemberBinder binder, DynamicMetaObject args ) : DynamicMetaObject

Performs the binding of the dynamic invoke member operation.

BindSetMember ( SetMemberBinder binder, DynamicMetaObject value ) : DynamicMetaObject

Performs the binding of the dynamic set member operation.

MetaObject ( Expression expression, object value, bool staticBind ) : System

Initializes a new instance of the MetaObject class.

Private Methods

Method Description
ConvertExpressionType ( Type expectedType, Expression target ) : Expression

Coerces the expression type into the expected return type.

Dynamic dispatch expects a method to return .

GetBindingFlags ( ) : BindingFlags

Returns BindingFlags for member search.

GetMemberExpression ( Expression self, string memberName ) : MemberExpression

Generates the Expression for accessing a member by name.

Method Details

BindGetMember() public method

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

BindInvokeMember() public method

Performs the binding of the dynamic invoke member operation.
/// There is an attempt to dynamically access a class member that does not exist. ///
public BindInvokeMember ( InvokeMemberBinder binder, DynamicMetaObject args ) : DynamicMetaObject
binder System.Dynamic.InvokeMemberBinder /// An instance of the that represents the details of the dynamic operation. ///
args System.Dynamic.DynamicMetaObject /// An array of instances - arguments to the invoke member operation. ///
return System.Dynamic.DynamicMetaObject

BindSetMember() public method

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

MetaObject() public method

Initializes a new instance of the MetaObject class.
public MetaObject ( Expression expression, object value, bool staticBind ) : System
expression System.Linq.Expressions.Expression /// The expression representing this during the dynamic binding process. ///
value object /// The runtime value represented by the . ///
staticBind bool /// Should this MetaObject bind to or instance methods and fields. ///
return System