CallSiteOps.AddRule<T>(CallSite<T>, T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.