AlgorithmsForEachT Method |
Performs the specified action on each item in a collection.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic static void ForEach<T>(
IEnumerable<T> collection,
Action<T> action
)
public:
generic<typename T>
static void ForEach(
IEnumerable<T>^ collection,
Action<T>^ action
)
Parameters
- collection
- Type: System.Collections.GenericIEnumerableT
The collection to process. - action
- Type: SystemActionT
An Action delegate which is invoked for each item in collection.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:X3Platform.Collections.Algorithms.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Action{``0})"]
See Also