Class Disposer
Class to keep track of objects that should all be disposed at some point, when Dispose is called.
Inheritance
object
Disposer
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 |
---|---|---|
System.IDisposable | disposable | The disposable object. |
Dispose()
Disposes all added disposable objects.
Declaration
public void Dispose()