Class DynamicObject.DynamicMetaObject
Complements System.Dynamic.DynamicMetaObject and serves as the common representation of dynamic metadata, allowing operations to be dispatched on dynamic objects.
Inheritance
Namespace: TimeCockpit.Data
Assembly: TimeCockpit.Data.dll
Syntax
protected class DynamicMetaObject : DynamicMetaObject
Remarks
Supports the library for integrating with the Dynamic Language Runtime. This class must not be used outside of this library!
Caution! Will be replaced as soon as implementation of C# 4.0 becomes available.
Constructors
DynamicMetaObject(DynamicObject, Expression)
Initializes a new instance of the DynamicMetaObject class.
Declaration
public DynamicMetaObject(DynamicObject v, Expression e)
Parameters
Type | Name | Description |
---|---|---|
DynamicObject | v | Reference to the dynamic object |
System.Linq.Expressions.Expression | e | Provided by the DLR (Dynamic Language Runtime). |
Methods
BindGetMember(GetMemberBinder)
Gets the meta object for a get member operation.
Declaration
public override DynamicMetaObject BindGetMember(GetMemberBinder info)
Parameters
Type | Name | Description |
---|---|---|
System.Dynamic.GetMemberBinder | info | Information about which member to get. |
Returns
Type | Description |
---|---|
System.Dynamic.DynamicMetaObject | Reference to the meta object that can be used to dispatch operations. |
BindSetMember(SetMemberBinder, DynamicMetaObject)
Gets the meta object for a set member operation.
Declaration
public override DynamicMetaObject BindSetMember(SetMemberBinder info, DynamicMetaObject value)
Parameters
Type | Name | Description |
---|---|---|
System.Dynamic.SetMemberBinder | info | Information about which member to set. |
System.Dynamic.DynamicMetaObject | value | Value to set. |
Returns
Type | Description |
---|---|
System.Dynamic.DynamicMetaObject | Reference to the meta object that can be used to dispatch operations. |