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); } } }
internal MonoBtlsObject(MonoBtlsHandle handle) { this.handle = handle; }
internal MonoBtlsObject (MonoBtlsHandle handle) { this.handle = handle; }
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); } } }