Show / Hide Table of Contents

Class Disposable

Base class that simplifies the implementation of the IDisposable interface.

Inheritance
object
Disposable
RSACryptoTransform
AsyncDisposable
Implements
IDisposableEx
IDisposable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Types.Base
Assembly: MCART.dll
Syntax
public abstract class Disposable : IDisposableEx, IDisposable
Remarks

If the class to implement contains asynchronous disposal actions, use the AsyncDisposable class as the base class.

Properties

| Edit this page View Source

IsDisposed

Gets a value indicating whether this object has been disposed.

Declaration
public bool IsDisposed { get; }
Property Value
Type Description
bool

Methods

| Edit this page View Source

Dispose()

Releases the resources used by this instance.

Declaration
public void Dispose()
| Edit this page View Source

Dispose(bool)

Releases the resources used by this instance.

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

Indicates whether managed resources should be released.

| Edit this page View Source

~Disposable()

Destroys this instance of the Disposable class.

Declaration
protected ~Disposable()
| Edit this page View Source

OnDispose()

Performs cleanup operations for disposable managed objects for this instance.

Declaration
protected abstract void OnDispose()
| Edit this page View Source

OnFinalize()

Performs cleanup operations for unmanaged objects.

Declaration
protected virtual void OnFinalize()

Implements

IDisposableEx
IDisposable

Extension Methods

Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Common.IfNotNull<T>(T?, Action<T>)
Objects.Itself<T>(T)
Objects.ShallowCopyTo<T>(T, T)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX