Provides methods for manipulating disposable objects.
public static class DisposableUtility
| name | description |
|---|---|
| static Dispose<T>(…) | Disposes and nulls the specified object. |
| static DisposeAfter<T>(…) | Disposes the specified object after executing the specified delegate. (2 methods) |
| static DisposeAfter<TInput,TOutput>(…) | Disposes the specified object after executing the specified delegate. (2 methods) |
| static DisposeObject<T>(…) | Disposes and nulls the specified object. |
| static DisposeWith<T>(…) | Adds the specified IDisposable object to disposables and returns it. |