VPEnumerableExtensions ForEach T  Method (IEnumerable T , Action T )Virtual Photonics - VTS Library
Virtual Photonics
Method for applying an action to any enumerable sequence. This is the analog of Select, but with no output (only "side effects"). This overload takes in an Action with an additional int parameter that provides the index of the sequence.

Namespace: Vts.Extensions
Assembly: Vts (in Vts.dll) Version: 1.0.12.0 (1.0.12)
Syntax

public static void ForEach<T>(
	this IEnumerable<T> items,
	Action<T> action
)

Parameters

items
Type: OnlineSystem.Collections.Generic IEnumerable T 
action
Type: OnlineSystem 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 OnlineIEnumerable T . When you use instance method syntax to call this method, omit the first parameter. For more information, see OnlineExtension Methods (Visual Basic) or OnlineExtension Methods (C# Programming Guide).
See Also