Click or drag to resize

Utils_Linq.ForEach<T> Method

Performs the specified action on each element of the System.Collections.Generic.IEnumerable/T/.

Namespace:  MicaSystems.Utils
Assembly:  MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax
C#
public static void ForEach<T>(
	this IEnumerable<T> list,
	Action<T> action
)

Parameters

list
Type: System.Collections.Generic.IEnumerable<T>
action
Type: System.Action<T>

Type Parameters

T

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<T>. 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