Array.ForEach<T> Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Performs the specified action on each element of the specified array.
Assembly: mscorlib (in mscorlib.dll)
Type Parameters
- T
The type of the elements of the array.
Parameters
- array
- Type:
T
[]
The one-dimensional, zero-based Array on whose elements the action is to be performed.
- action
- Type: System.Action<T>
The Action<T> to perform on each element of array.
| Exception | Condition |
|---|---|
| ArgumentNullException | array is null. -or- action is null. |
Show: