C# Class Corlib.DisposableExtensions

IDisposable extension methods
Mostrar archivo Open project: GeorgeTsiokos/corlib

Public Methods

Method Description
TryDispose ( ) : bool

Attempts the call to dispose for each arg by catches exceptions

Exceptions are routed to the current exception handler

TryDispose ( this disposable ) : bool

Attempts the call to dispose by catches exceptions

Exceptions are routed to the current exception handler

TryDispose ( this disposables ) : bool

Attempts the call to dispose for each instance by catches exceptions

Exceptions are routed to the current exception handler

Private Methods

Method Description
TryDispose ( IEnumerable disposables, Lazy exceptionHandler ) : bool
TryDispose ( this disposable, Lazy exceptionHandler ) : bool

Method Details

TryDispose() public static method

Attempts the call to dispose for each arg by catches exceptions
Exceptions are routed to the current exception handler
public static TryDispose ( ) : bool
return bool

TryDispose() public static method

Attempts the call to dispose by catches exceptions
Exceptions are routed to the current exception handler
public static TryDispose ( this disposable ) : bool
disposable this instance to dispose
return bool

TryDispose() public static method

Attempts the call to dispose for each instance by catches exceptions
Exceptions are routed to the current exception handler
public static TryDispose ( this disposables ) : bool
disposables this instances to dispose
return bool