C# Class Microsoft.CSharp.RuntimeBinder.CSharpConvertBinder

Represents a dynamic conversion in C#, providing the binding semantics and the details about the operation. Instances of this class are generated by the C# compiler.
Inheritance: System.Dynamic.ConvertBinder
Show file Open project: dotnet/corefx

Private Properties

Property Type Description

Public Methods

Method Description
CSharpConvertBinder ( Type type, CSharpConversionKind conversionKind, bool isChecked, Type callingContext ) : System

Initializes a new instance of the CSharpConvertBinder.

FallbackConvert ( DynamicMetaObject target, DynamicMetaObject errorSuggestion ) : DynamicMetaObject

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

Method Details

CSharpConvertBinder() public method

Initializes a new instance of the CSharpConvertBinder.
public CSharpConvertBinder ( Type type, CSharpConversionKind conversionKind, bool isChecked, Type callingContext ) : System
type System.Type The type to convert to.
conversionKind CSharpConversionKind The kind of conversion for this operation.
isChecked bool True if the operation is defined in a checked context; otherwise false.
callingContext System.Type
return System

FallbackConvert() public method

Performs the binding of the dynamic convert operation if the target dynamic object cannot bind.
public FallbackConvert ( DynamicMetaObject target, DynamicMetaObject errorSuggestion ) : DynamicMetaObject
target System.Dynamic.DynamicMetaObject The target of the dynamic convert operation.
errorSuggestion System.Dynamic.DynamicMetaObject The binding result to use if binding fails, or null.
return System.Dynamic.DynamicMetaObject