Performs the specified action on each element of the specified array.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static void ForEach<T>(
T[] array,
Action<T> action
)
Parameters
- array
- Type: T
The one-dimensional, zero-based Array on whose elements the action is to be performed. - action
- Type: SystemActionT
The ActionT to perform on each element of array.
Type Parameters
- T
- The type of the elements of the array.
Exceptions See Also