EnumerableExtensions.ForEach<T>(IEnumerable<T>, Action<T, Int32>) Method
Iterates through each item in the IEnumerable<T>
collection and performs the specified action.
Namespace: DevExpress.Maui.Mvvm
Assembly: DevExpress.Maui.Mvvm.dll
NuGet Package: DevExpress.Maui.Mvvm
Declaration
public static void ForEach<T>(
this IEnumerable<T> source,
Action<T, int> action
)
Parameters
Name | Type | Description |
---|---|---|
source | IEnumerable<T> | The collection of items. |
action | Action<T, Int32> | The action applied to each item in the collection. The second parameter is the item index. |
Type Parameters
Name | Description |
---|---|
T | The type of items stored in the |
See Also