CallSiteOps.AddRule<T>(CallSite<T>, T) 方法
定义
注意
do not use this method
将一个规则添加到在动态调用站点上维护的缓存。Adds a rule to the cache maintained on the dynamic call site.
此 API 支持产品基础结构,不能在代码中直接使用。
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)
类型参数
参数
- site
- CallSite<T>
动态调用站点的实例。An instance of the dynamic call site.
- rule
- T
调用站点规则的实例。An instance of the call site rule.
- 属性