Click or drag to resize
Akka.NETExtensionsForEachT Method
Applies a delegate action to all elements of this enumerable.

Namespace:  Akka.Util.Internal
Assembly:  Akka (in Akka.dll) Version: (
public static void ForEach<T>(
	this IEnumerable<T> source,
	Action<T> action


Type: System.Collections.GenericIEnumerableT
An IEnumerableT to iterate.
Type: SystemActionT
The function that is applied for its side-effect to every element. The result of function action is discarded.

Type Parameters

The type of the elements of source.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also