Kit Documentation
Kit Documentation
Kit Reference
Kit
EnumerableExtensions Class
EnumerableExtensions Methods
ForEach(T) Method
IndexOf Method
Join Method
Log(T) Method
One(T) Method
WithIndex(T) Method
EnumerableExtensions
ForEach
T
Method
Perform an action on a enumerable of items.
Namespace:
Kit
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
Copy
public
static
void
ForEach
<T>(
this
IEnumerable
<T>
enumerable
,
Action
<T>
action
)
Request Example
View Source
Parameters
enumerable
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
Reference
EnumerableExtensions Class
Kit Namespace
Send comments on this topic to
agam@frag-games.com