Ejemplo n.º 1
0
 static unsafe void CopyHelper(BlockLiteral *dest, BlockLiteral *source)
 {
     dest->global_handle = (IntPtr) GCHandle.Alloc (GCHandle.FromIntPtr (dest->local_handle).Target);
 }
Ejemplo n.º 2
0
 static unsafe void DisposeHelper(BlockLiteral *block)
 {
     GCHandle.FromIntPtr (block->global_handle).Free ();
 }