Edit

Share via


BlockLiteral.GetTarget<T>(IntPtr) Method

Definition

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.

Applies to