コード例 #1
0
 public void Dispose()
 {
     Marshal.FreeHGlobal(NativePointer->DisplayName);
     MemUtil.Free((IntPtr)NativePointer);
     NativePointer = null;
     GC.SuppressFinalize(this);
 }
コード例 #2
0
 public DisplayPropertiesKHR()
 {
     NativePointer = (Unmanaged.DisplayPropertiesKHR *)MemUtil.Alloc(typeof(Unmanaged.DisplayPropertiesKHR));
 }