CallSiteOps.Bind<T>(CallSiteBinder, CallSite<T>, Object[]) Method

Definition

Caution

do not use this method

Updates the call site target with a new rule based on the arguments.

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

public:
generic <typename T>
 where T : class static T Bind(System::Runtime::CompilerServices::CallSiteBinder ^ binder, System::Runtime::CompilerServices::CallSite<T> ^ site, cli::array <System::Object ^> ^ args);
[System.Obsolete("do not use this method", true)]
public static T Bind<T> (System.Runtime.CompilerServices.CallSiteBinder binder, System.Runtime.CompilerServices.CallSite<T> site, object[] args) where T : class;
[<System.Obsolete("do not use this method", true)>]
static member Bind : System.Runtime.CompilerServices.CallSiteBinder * System.Runtime.CompilerServices.CallSite<'T (requires 'T : null)> * obj[] -> 'T (requires 'T : null)
Public Shared Function Bind(Of T As Class) (binder As CallSiteBinder, site As CallSite(Of T), args As Object()) As T

Type Parameters

T

The type of the delegate of the CallSite.

Parameters

binder
CallSiteBinder

The call site binder.

site
CallSite<T>

An instance of the dynamic call site.

args
Object[]

Arguments to the call site.

Returns

T

The new call site target.

Attributes

Applies to