Adds a progress callback to any enumeration, which will increment an internal counter when enumerating and call the specified callback.
public static IEnumerable<T> WithProgress<T>(this IEnumerable<T> src, Action<double> callback)| parameter | description |
|---|---|
| T | Items type |
| src | Source collection |
| callback | Callback taking the current increment value as parameter |
- class EnumerableExtensions
- namespace Wokhan.Collections.Generic.Extensions