BlockLiteral.GetTarget<T>(IntPtr) 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.
If this block represents a managed delegate, this method will return that managed delegate.
public static T GetTarget<T> (IntPtr block) where T : class;
static member GetTarget : nativeint -> 'T (requires 'T : null)
Type Parameters
- T
The type of the managed delegate to return.
Parameters
- block
-
IntPtr
nativeint
The pointer to the native block.
Returns
T
The managed delegate for this block.
Remarks
Behavior is undefined if this block does not represent a managed delegate.