ExtensionMethodsForEachT Method |
Extends the LINQ expression to IEnumerable
Namespace:
Hummingbird.TestFramework
Assembly:
Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax public static void ForEach<T>(
this IEnumerable<T> enumerable,
Action<T> action
)
<ExtensionAttribute>
Public Shared Sub ForEach(Of T) (
enumerable As IEnumerable(Of T),
action As Action(Of T)
)
public:
[ExtensionAttribute]
generic<typename T>
static void ForEach(
IEnumerable<T>^ enumerable,
Action<T>^ action
)
[<ExtensionAttribute>]
static member ForEach :
enumerable : IEnumerable<'T> *
action : Action<'T> -> unit
Parameters
- enumerable
- Type: System.Collections.GenericIEnumerableT
The enumerable. - action
- Type: SystemActionT
The action.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:Hummingbird.TestFramework.ExtensionMethods.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Action{``0})"]
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