Table of Contents

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

enumerable IEnumerable<T>

The collection to iterate over.

action Action<T>

The action to perform on each element.

Type Parameters

T

The type of elements in the collection.