Skip to content

GetSetPropertyDynamicMetaObject

QuantConnect.Data.GetSetPropertyDynamicMetaObject

GetSetPropertyDynamicMetaObject(
    expression: Any,
    value: Any,
    set_property_method_info: MethodInfo,
    get_property_method_info: MethodInfo,
)

Bases: DynamicMetaObject

Provides an implementation of DynamicMetaObject that uses get/set methods to update values in the dynamic object.

Initializes a new instance of the QuantConnect.Data.GetSetPropertyDynamicMetaObject class.

Parameters:

Name Type Description Default
expression Any

The expression representing this System.Dynamic.DynamicMetaObject

required
value Any

The value represented by the System.Dynamic.DynamicMetaObject

required
set_property_method_info MethodInfo

The set method to use for updating this dynamic object

required
get_property_method_info MethodInfo

The get method to use for updating this dynamic object

required

bind_get_member

bind_get_member(binder: Any) -> Any

Performs the binding of the dynamic get member operation.

Parameters:

Name Type Description Default
binder Any

An instance of the System.Dynamic.GetMemberBinder that represents the details of the dynamic operation.

required

Returns:

Type Description
Any

The new System.Dynamic.DynamicMetaObject representing the result of the binding.

bind_set_member

bind_set_member(binder: Any, value: Any) -> Any

Performs the binding of the dynamic set member operation.

Parameters:

Name Type Description Default
binder Any

An instance of the System.Dynamic.SetMemberBinder that represents the details of the dynamic operation.

required
value Any

The System.Dynamic.DynamicMetaObject representing the value for the set member operation.

required

Returns:

Type Description
Any

The new System.Dynamic.DynamicMetaObject representing the result of the binding.