C# Class System.Dynamic.BinaryOperationBinder

Inheritance: DynamicMetaObjectBinder
Show file Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
OperationIsValid bool

Public Methods

Method Description
Bind ( DynamicMetaObject target, DynamicMetaObject args ) : DynamicMetaObject

Performs the binding of the dynamic binary operation.

FallbackBinaryOperation ( DynamicMetaObject target, DynamicMetaObject arg ) : DynamicMetaObject

Performs the binding of the binary dynamic operation if the target dynamic object cannot bind.

FallbackBinaryOperation ( DynamicMetaObject target, DynamicMetaObject arg, DynamicMetaObject errorSuggestion ) : DynamicMetaObject

When overridden in the derived class, performs the binding of the binary dynamic operation if the target dynamic object cannot bind.

Protected Methods

Method Description
BinaryOperationBinder ( ExpressionType operation ) : System.Dynamic.Utils

Initializes a new instance of the BinaryOperationBinder class.

Private Methods

Method Description
OperationIsValid ( ExpressionType operation ) : bool

Method Details

BinaryOperationBinder() protected method

Initializes a new instance of the BinaryOperationBinder class.
protected BinaryOperationBinder ( ExpressionType operation ) : System.Dynamic.Utils
operation ExpressionType The binary operation kind.
return System.Dynamic.Utils

Bind() public final method

Performs the binding of the dynamic binary operation.
public final Bind ( DynamicMetaObject target, DynamicMetaObject args ) : DynamicMetaObject
target DynamicMetaObject The target of the dynamic operation.
args DynamicMetaObject An array of arguments of the dynamic operation.
return DynamicMetaObject

FallbackBinaryOperation() public method

Performs the binding of the binary dynamic operation if the target dynamic object cannot bind.
public FallbackBinaryOperation ( DynamicMetaObject target, DynamicMetaObject arg ) : DynamicMetaObject
target DynamicMetaObject The target of the dynamic binary operation.
arg DynamicMetaObject The right hand side operand of the dynamic binary operation.
return DynamicMetaObject

FallbackBinaryOperation() public abstract method

When overridden in the derived class, performs the binding of the binary dynamic operation if the target dynamic object cannot bind.
public abstract FallbackBinaryOperation ( DynamicMetaObject target, DynamicMetaObject arg, DynamicMetaObject errorSuggestion ) : DynamicMetaObject
target DynamicMetaObject The target of the dynamic binary operation.
arg DynamicMetaObject The right hand side operand of the dynamic binary operation.
errorSuggestion DynamicMetaObject The binding result in case the binding fails, or null.
return DynamicMetaObject