C# Class System.Dynamic.ConvertBinder

Represents the convert dynamic operation at the call site, providing the binding semantic and the details about the operation.
Inheritance: DynamicMetaObjectBinder
Mostra file Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description

Public Methods

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

Performs the binding of the dynamic convert operation.

FallbackConvert ( DynamicMetaObject target ) : DynamicMetaObject

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

FallbackConvert ( DynamicMetaObject target, DynamicMetaObject errorSuggestion ) : DynamicMetaObject

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

Protected Methods

Method Description
ConvertBinder ( Type type, bool @explicit ) : System.Dynamic.Utils

Initializes a new instance of the ConvertBinder.

Method Details

Bind() public final method

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

ConvertBinder() protected method

Initializes a new instance of the ConvertBinder.
protected ConvertBinder ( Type type, bool @explicit ) : System.Dynamic.Utils
type Type The type to convert to.
@explicit bool
return System.Dynamic.Utils

FallbackConvert() public method

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

FallbackConvert() public abstract method

When overridden in the derived class, performs the binding of the dynamic convert operation if the target dynamic object cannot bind.
public abstract FallbackConvert ( DynamicMetaObject target, DynamicMetaObject errorSuggestion ) : DynamicMetaObject
target DynamicMetaObject The target of the dynamic convert operation.
errorSuggestion DynamicMetaObject The binding result to use if binding fails, or null.
return DynamicMetaObject