Exemple #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (handle != IntPtr.Zero)
     {
         NativeInvoke.PMRelease(handle);
         handle = IntPtr.Zero;
     }
 }
Exemple #2
0
 internal PMPrintCoreBase(IntPtr handle, bool owns)
 {
     if (!owns)
     {
         NativeInvoke.PMRetain(handle);
     }
     this.handle = handle;
 }