Class DelegateSlots
public static class DelegateSlots
- Inheritance
-
DelegateSlots
- Inherited Members
Fields
LookupDelegateMethod
public static readonly MethodInfo LookupDelegateMethod
Field Value
LookupTargetMethod
public static readonly MethodInfo LookupTargetMethod
Field Value
Properties
RegisteredCount
public static int RegisteredCount { get; }
Property Value
Methods
Clear()
public static void Clear()
LookupDelegate(int)
public static Delegate LookupDelegate(int id)
Parameters
idint
Returns
LookupTarget(int)
public static object LookupTarget(int id)
Parameters
idint
Returns
RegisterDelegate(Delegate)
The slot of d: its existing slot when an identical delegate (same target
object, same method) was registered before, else a fresh one. The kernel bakes the slot id,
so this dedup is what lets a per-call rebuilt tree reuse its compiled kernel.
public static int RegisterDelegate(Delegate d)
Parameters
Returns
- int
The slot id the emitted IL loads it by.
RegisterTarget(object)
The slot of a bound instance target: its existing slot when the SAME object (by reference) was registered before, else a fresh one.
public static int RegisterTarget(object t)
Parameters
Returns
- int
The slot id the emitted IL loads it by.