コード例 #1
0
ファイル: PrintCore.cs プロジェクト: zippo227/xamarin-macios
 protected virtual void Dispose(bool disposing)
 {
     if (handle != IntPtr.Zero)
     {
         NativeInvoke.PMRelease(handle);
         handle = IntPtr.Zero;
     }
 }
コード例 #2
0
ファイル: PrintCore.cs プロジェクト: zippo227/xamarin-macios
 internal PMPrintCoreBase(IntPtr handle, bool owns)
 {
     if (!owns)
     {
         NativeInvoke.PMRetain(handle);
     }
     this.handle = handle;
 }