Applies an Action to all items in an enumeration, when enumerated.
public static IEnumerable<T> ApplyToAll<T>(this IEnumerable<T> src, Action<T> action)| parameter | description |
|---|---|
| T | Items type |
| src | Source enumeration |
| action | The action to perform on each items |
Original enumeration with items modified or used by the specified action
- class EnumerableExtensions
- namespace Wokhan.Collections.Generic.Extensions