Muokkaa

Jaa


CallSiteOps.AddRule<T>(CallSite<T>, T) Method

Definition

Caution

do not use this method

Adds a rule to the cache maintained on the dynamic call site.

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 void AddRule(System::Runtime::CompilerServices::CallSite<T> ^ site, T rule);
[System.Obsolete("do not use this method", true)]
public static void AddRule<T> (System.Runtime.CompilerServices.CallSite<T> site, T rule) where T : class;
[<System.Obsolete("do not use this method", true)>]
static member AddRule : System.Runtime.CompilerServices.CallSite<'T (requires 'T : null)> * 'T -> unit (requires 'T : null)
Public Shared Sub AddRule(Of T As Class) (site As CallSite(Of T), rule As T)

Type Parameters

T

The type of the delegate of the CallSite.

Parameters

site
CallSite<T>

An instance of the dynamic call site.

rule
T

An instance of the call site rule.

Attributes

Applies to