Class DisposableSystem
Represents a base type for systems that contain disposable objects.
public abstract class DisposableSystem : ISystem, IDisposable
- Inheritance
-
DisposableSystem
- Implements
- Inherited Members
Constructors
DisposableSystem()
protected DisposableSystem()
Methods
AddDisposable(IDisposable?)
Adds a disposable object to the list of objects to dispose when this system is disposed.
protected void AddDisposable(IDisposable? disposable)
Parameters
disposableIDisposableThe disposable object to add.
Dispose()
public void Dispose()
OnDispose()
A method that is called when this system is disposed.
protected virtual void OnDispose()