ArrayExtensions.ForEach<T>
Extension Method in ArrayExtensions
Declaration
public static void ForEach<T>(this T[] array, Action<T> action)
Description
Invokes an action for each element in the array. The element is passed as a parameter.
Type Parameters
T | The type of the array. |
Parameters
array | The array to iterate over. |
action | The action to invoke. |