FromIntPtr() private method

private FromIntPtr ( IntPtr value ) : GCHandle
value System.IntPtr
return GCHandle
Exemplo n.º 1
0
        public static void RuntimeHandleFree(IntPtr handlePtr)
        {
            GCHandle handle = GCHandle.FromIntPtr(handlePtr);

            handle.Free();
        }
Exemplo n.º 2
0
        public static void RuntimeHandleSet(IntPtr handle, Object value)
        {
            GCHandle gcHandle = GCHandle.FromIntPtr(handle);

            gcHandle.Target = value;
        }