3 // Copyright (c) Microsoft Corporation. All rights reserved.
6 namespace System.Runtime.InteropServices
11 [System.Runtime.InteropServices.ComVisible(true)]
12 public struct HandleRef
15 // ! Do not add or rearrange fields as the EE depends on this layout.
16 //------------------------------------------------------------------
17 internal Object m_wrapper;
18 internal IntPtr m_handle;
19 //------------------------------------------------------------------
22 public HandleRef(Object wrapper, IntPtr handle)
45 public static explicit operator IntPtr(HandleRef value)
47 return value.m_handle;
50 public static IntPtr ToIntPtr(HandleRef value)
52 return value.m_handle;