Class DisposableObject
Abstract class that represents an object that could be disposed. Implements the IDisposable pattern, exposing a Destroy() method.
Inheritance
DisposableObject
Implements
Inherited Members
Namespace: Evergine.Framework
Assembly: Evergine.Framework.dll
Syntax
public abstract class DisposableObject : IDisposable
Properties
Disposed
Gets a value indicating whether this object is disposed.
Declaration
public bool Disposed { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
Destroy()
Destroy all resources of this instance.
Declaration
protected abstract void Destroy()
Dispose()
Public implementation of Dispose pattern callable by consumers.
Declaration
public void Dispose()
Dispose(bool)
Protected implementation of Dispose pattern.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | Dispose native elements. |
~DisposableObject()
Finalizes an instance of the DisposableObject class.
Declaration
protected ~DisposableObject()