Performs the passed action on each item in the collection.
Namespace: Reimers.CoreAssembly: Reimers.Core (in Reimers.Core.dll) Version: 5.3.95.699 (5.3.95.699)
Syntax
C# |
---|
public static void ForEach<T>( this IEnumerable<T> collection, Action<T> action ) |
Parameters
- collection
- Type: System.Collections.Generic..::..IEnumerable<(Of <(<'T>)>)>
The IEnumerable<(Of <(<'T>)>)> to iterate over.
- action
- Type: System..::..Action<(Of <(<'T>)>)>
The Action to perform.
Type Parameters
- T
- The Type of items in the collection.