Show / Hide Table of Contents

Class Disposable

Provides a mechanism for releasing both managed and unmanaged resources with focus on the former. Implements the IDisposable

Inheritance
Object
Disposable
DataReader<TRead>
FinalizeDisposable
HttpManager
SlimMemoryCache
Watcher
Implements
IDisposable
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public abstract class Disposable : IDisposable

Properties

| Improve this Doc View Source

Disposed

Gets a value indicating whether this Disposable object is disposed.

Declaration
public bool Disposed { get; }
Property Value
Type Description
Boolean

true if this Disposable object is disposed; otherwise, false.

Methods

| Improve this Doc View Source

Dispose()

Releases all resources used by the Disposable object.

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

Dispose(Boolean)

Releases the unmanaged resources used by the Disposable object and optionally releases the managed resources.

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

true to release both managed and unmanaged resources; false to release only unmanaged resources.

| Improve this Doc View Source

OnDisposeManagedResources()

Called when this object is being disposed by either Dispose() or Dispose(Boolean) having disposing set to true and Disposed is false.

Declaration
protected abstract void OnDisposeManagedResources()
| Improve this Doc View Source

OnDisposeUnmanagedResources()

Called when this object is being disposed by either Dispose() or Dispose(Boolean) and Disposed is false.

Declaration
protected virtual void OnDisposeUnmanagedResources()

Implements

System.IDisposable

See Also

IDisposable
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright 2008-2022 Geekle. All rights reserved. Code with passion and love; deploy with confidence. 👨‍💻️🔥❤️🚀😎
Generated by DocFX