Show / Hide Table of Contents

Class Disposable

Provides implementation of dispose pattern.

Inheritance
Object
Disposable
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public abstract class Disposable : IDisposable

Properties

| Improve this Doc View Source

IsDisposed

Indicates that this object is disposed.

Declaration
protected bool IsDisposed { get; }
Property Value
Type Description
Boolean

Methods

| Improve this Doc View Source

Dispose()

Releases all resources associated with this object.

Declaration
public void Dispose()
| Improve this Doc View Source

Dispose(IDisposable[])

Disposes many objects in safe manner.

Declaration
public static void Dispose(params IDisposable[] objects)
Parameters
Type Name Description
IDisposable[] objects

An array of objects to dispose.

| Improve this Doc View Source

Dispose(IEnumerable<IDisposable>)

Disposes many objects.

Declaration
public static void Dispose(IEnumerable<IDisposable> objects)
Parameters
Type Name Description
IEnumerable<IDisposable> objects

An array of objects to dispose.

| Improve this Doc View Source

Dispose(Boolean)

Releases managed and unmanaged resources associated with this object.

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
Boolean disposing

true if called from Dispose(); false if called from finalizer Finalize().

| Improve this Doc View Source

Finalize()

Finalizes this object.

Declaration
protected void Finalize()
| Improve this Doc View Source

QueueDispose(IDisposable)

Places method call into thread pool.

Declaration
protected static void QueueDispose(IDisposable resource)
Parameters
Type Name Description
IDisposable resource

The resource to be disposed.

| Improve this Doc View Source

ThrowIfDisposed()

Throws exception if this object is disposed.

Declaration
protected void ThrowIfDisposed()

Extension Methods

AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, CancellationToken)
ExpressionBuilder.Const<T>(T)
ObjectExtensions.GetUserData<T>(T)
ObjectExtensions.IsOneOf<T>(T, IEnumerable<T>)
ObjectExtensions.IsOneOf<T>(T, T[])
ObjectExtensions.Decompose<T, R1, R2>(T, Func<T, R1>, Func<T, R2>, out R1, out R2)
ObjectExtensions.Decompose<T, R1, R2>(T, ValueFunc<T, R1>, ValueFunc<T, R2>, out R1, out R2)
ObjectExtensions.Decompose<T, R1, R2>(T, Func<T, R1>, Func<T, R2>)
ObjectExtensions.Decompose<T, R1, R2>(T, ValueFunc<T, R1>, ValueFunc<T, R2>)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)

See Also

Implementing Dispose method
  • Improve this Doc
  • View Source
Back to top Generated by DocFX