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

TThe type of the array.

Parameters

arrayThe array to iterate over.
actionThe action to invoke.