Bewerken

Share via


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

Definition

Provides low-level runtime binding support. Classes can override this and provide a direct delegate for the implementation of rule. This can enable saving rules to disk, having specialized rules available at runtime, or providing a different caching policy.

public:
generic <typename T>
 where T : class virtual T BindDelegate(System::Runtime::CompilerServices::CallSite<T> ^ site, cli::array <System::Object ^> ^ args);
public virtual T BindDelegate<T> (System.Runtime.CompilerServices.CallSite<T> site, object[] args) where T : class;
public virtual T? BindDelegate<T> (System.Runtime.CompilerServices.CallSite<T> site, object[] args) where T : class;
abstract member BindDelegate : System.Runtime.CompilerServices.CallSite<'T (requires 'T : null)> * obj[] -> 'T (requires 'T : null)
override this.BindDelegate : System.Runtime.CompilerServices.CallSite<'T (requires 'T : null)> * obj[] -> 'T (requires 'T : null)
Public Overridable Function BindDelegate(Of T As Class) (site As CallSite(Of T), args As Object()) As T

Type Parameters

T

The target type of the CallSite.

Parameters

site
CallSite<T>

The CallSite the bind is being performed for.

args
Object[]

The arguments for the binder.

Returns

T

A new delegate which replaces the CallSite Target.

Applies to