Method DisposeAll
DisposeAll<T>(IEnumerable<T>, Action<T, Exception>)
Declaration
public static void DisposeAll<T>(this IEnumerable<T> enumerable, Action<T, Exception> onError = null) where T : IDisposable
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | enumerable | |
Action<T, Exception> | onError |
Type Parameters
Name | Description |
---|---|
T |