Lean
$LEAN_TAG$
|
Provides extensions methods for IDisposable More...
Static Public Member Functions | |
static bool | DisposeSafely (this IDisposable disposable) |
Calls IDisposable.Dispose within a try/catch and logs any errors. More... | |
static bool | DisposeSafely (this IDisposable disposable, Action< Exception > errorHandler) |
Calls IDisposable.Dispose within a try/catch and invokes the errorHandler on any errors. More... | |
Provides extensions methods for IDisposable
Definition at line 25 of file DisposableExtensions.cs.
|
static |
Calls IDisposable.Dispose within a try/catch and logs any errors.
disposable | The IDisposable to be disposed |
Definition at line 32 of file DisposableExtensions.cs.
|
static |
Calls IDisposable.Dispose within a try/catch and invokes the errorHandler on any errors.
disposable | The IDisposable to be disposed |
errorHandler | Error handler delegate invoked if an exception is thrown while calling IDisposable.Dispose |
on disposable
Definition at line 46 of file DisposableExtensions.cs.