Esempio n. 1
0
 protected void Dispose(bool disposing)
 {
     if (disposing)
     {
         try {
             if (handle != null)
             {
                 Close();
                 handle.Dispose();
                 handle = null;
             }
         } finally {
             var disposedExc = new ObjectDisposedException(GetType().Name);
             Interlocked.CompareExchange(ref lastError, disposedExc, null);
         }
     }
 }
Esempio n. 2
0
 internal MonoBtlsObject(MonoBtlsHandle handle)
 {
     this.handle = handle;
 }
Esempio n. 3
0
		internal MonoBtlsObject (MonoBtlsHandle handle)
		{
			this.handle = handle;
		}
Esempio n. 4
0
		protected void Dispose (bool disposing)
		{
			if (disposing) {
				try {
					if (handle != null) {
						Close ();
						handle.Dispose ();
						handle = null;
					}
				} finally {
					var disposedExc = new ObjectDisposedException (GetType ().Name);
					Interlocked.CompareExchange (ref lastError, disposedExc, null);
				}
			}
		}