Class Disposer
Class to keep track of objects that should all be disposed at some point, when Dispose is called.
Inherited Members
Namespace: InsaneScatterbrain.Services
Syntax
public class Disposer
Methods
Add(IDisposable)
Adds the object for disposing.
Declaration
public void Add(IDisposable disposable)
Parameters
Type | Name | Description |
---|---|---|
IDisposable | disposable | The disposable object. |
Dispose()
Disposes all added disposable objects.
Declaration
public void Dispose()