freezeDelegate

Duplicate a delegate in GC memory and freeze it so that it isn't garbage collected when still referenced from C code.

void*
freezeDelegate
(
void* dlg
)

Parameters

dlg void*

Pointer to the delegate to freeze

Return Value

Type: void*

The duplicated delegate which is added as a GC root