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

 
Note: This API is now obsolete.

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

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

Namespace:   System.Runtime.CompilerServices
Assembly:  System.Core (in System.Core.dll)

[ObsoleteAttribute("do not use this method", true)]
public static void AddRule<T>(
	CallSite<T> site,
	T rule
)
where T : class

Parameters

site
Type: System.Runtime.CompilerServices.CallSite<T>

An instance of the dynamic call site.

rule
Type: T

An instance of the call site rule.

Type Parameters

T

The type of the delegate of the CallSite.

.NET Framework
Available since 4.0
Silverlight
Available since 4.0
Return to top
Show: