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