C# Class System.Dynamic.UnaryOperationBinder

Represents the unary dynamic operation at the call site, providing the binding semantic and the details about the operation.
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 unary operation.

FallbackUnaryOperation ( DynamicMetaObject target ) : DynamicMetaObject

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

FallbackUnaryOperation ( DynamicMetaObject target, DynamicMetaObject errorSuggestion ) : DynamicMetaObject

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

Protected Methods

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

Initializes a new instance of the UnaryOperationBinder class.

Private Methods

Method Description
OperationIsValid ( ExpressionType operation ) : bool

Method Details

Bind() public final method

Performs the binding of the dynamic unary 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

FallbackUnaryOperation() public method

Performs the binding of the unary dynamic operation if the target dynamic object cannot bind.
public FallbackUnaryOperation ( DynamicMetaObject target ) : DynamicMetaObject
target DynamicMetaObject The target of the dynamic unary operation.
return DynamicMetaObject

FallbackUnaryOperation() public abstract method

Performs the binding of the unary dynamic operation if the target dynamic object cannot bind.
public abstract FallbackUnaryOperation ( DynamicMetaObject target, DynamicMetaObject errorSuggestion ) : DynamicMetaObject
target DynamicMetaObject The target of the dynamic unary operation.
errorSuggestion DynamicMetaObject The binding result in case the binding fails, or null.
return DynamicMetaObject

UnaryOperationBinder() protected method

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