Binder.Convert(CSharpBinderFlags, Type, Type) Metod

Definition

Initierar en ny CSharp-konverterande bindemedel.

Detta API stöder produktinfrastrukturen och är inte avsett att användas direkt från koden.

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

Parametrar

flags
CSharpBinderFlags

Flaggorna som pärmen ska initieras med.

type
Type

Den typ som ska konverteras till.

context
Type

Det Type anger var den här åtgärden används.

Returer

En ny CSharp-konverterande bindemedel.

Attribut

Gäller för