Edit

Share via


Binder.Convert(CSharpBinderFlags, Type, Type) Method

Definition

Initializes a new CSharp convert binder.

This API supports the product infrastructure and is not intended to be used directly from your code.

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

Parameters

flags
CSharpBinderFlags

The flags with which to initialize the binder.

type
Type

The type to convert to.

context
Type

The Type that indicates where this operation is used.

Returns

A new CSharp convert binder.

Attributes

Applies to