The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Performs the specified action on each element of the specified array.
public static void ForEach<T>(
The type of the elements of the array.
- Type: T
The one-dimensional, zero-based Array on whose elements the action is to be performed.
- Type: System.Action<T>
The Action<T> to perform on each element of array.
The Action<T> is a delegate to a method that performs an action on the object passed to it. The elements of array are individually passed to the Action<T>.
This method is an O(n) operation, where n is the Length of array.
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
Supported in: Xbox 360, Windows Phone OS 7.0