Method ForEach
- Namespace
- Innova.Prism.Library.Extensions
- Assembly
- Innova.Prism.Library.dll
ForEach<T>(IEnumerable<T>, Action<T>)
Performs the specified action on each element of the collection.
public static void ForEach<T>(this IEnumerable<T> enumerable, Action<T> action)
Parameters
enumerableIEnumerable<T>The collection to iterate over.
actionAction<T>The action to perform on each element.
Type Parameters
TThe type of elements in the collection.