Binder.Convert(CSharpBinderFlags, Type, Type) Método

Definição

Inicializa um novo associador de conversão CSharp.

Esta API dá suporte à infraestrutura do produto e não deve ser usada diretamente do seu código.

public:
 static System::Runtime::CompilerServices::CallSiteBinder ^ Convert(Microsoft::CSharp::RuntimeBinder::CSharpBinderFlags flags, Type ^ type, Type ^ context);
public static System.Runtime.CompilerServices.CallSiteBinder Convert(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags flags, Type type, Type context);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The 'dynamic' feature requires runtime-code generation, which is incompatible with AOT.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Using dynamic types might cause types or members to be removed by trimmer.")]
public static System.Runtime.CompilerServices.CallSiteBinder Convert(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags flags, Type type, Type? context);
public static System.Runtime.CompilerServices.CallSiteBinder Convert(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags flags, Type type, Type? context);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Using dynamic types might cause types or members to be removed by trimmer.")]
public static System.Runtime.CompilerServices.CallSiteBinder Convert(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags flags, Type type, Type? context);
static member Convert : Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags * Type * Type -> System.Runtime.CompilerServices.CallSiteBinder
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The 'dynamic' feature requires runtime-code generation, which is incompatible with AOT.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Using dynamic types might cause types or members to be removed by trimmer.")>]
static member Convert : Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags * Type * Type -> System.Runtime.CompilerServices.CallSiteBinder
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Using dynamic types might cause types or members to be removed by trimmer.")>]
static member Convert : Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags * Type * Type -> System.Runtime.CompilerServices.CallSiteBinder
Public Shared Function Convert (flags As CSharpBinderFlags, type As Type, context As Type) As CallSiteBinder

Parâmetros

flags
CSharpBinderFlags

Os sinalizadores com os quais inicializar o associador.

type
Type

O tipo para o qual converter.

context
Type

O Type que indica onde essa operação é usada.

Retornos

Um novo associador de conversão CSharp.

Atributos

Aplica-se a