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.

C#
public virtual T BindDelegate<T>(System.Runtime.CompilerServices.CallSite<T> site, object[] args) where T : class;
C#
public virtual T? BindDelegate<T>(System.Runtime.CompilerServices.CallSite<T> site, object[] args) where T : class;

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

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0