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
Afficher le fichier Open project: dotnet/corefx

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

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
Résultat System

FallbackConvert() public méthode

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.
Résultat System.Dynamic.DynamicMetaObject