Back to Devexpress

EnumerableExtensions.ForEach<T>(IEnumerable<T>, Action<T>) Method

maui-devexpress-dot-maui-dot-mvvm-dot-enumerableextensions-dot-foreach-1-x28-system-dot-collections-dot-generic-dot-ienumerable-0-system-dot-action-0-x29.md

latest1.4 KB
Original Source

EnumerableExtensions.ForEach<T>(IEnumerable<T>, Action<T>) 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

csharp
public static void ForEach<T>(
    this IEnumerable<T> source,
    Action<T> action
)

Parameters

NameTypeDescription
sourceIEnumerable<T>

The collection of items.

| | action | Action<T> |

The action applied to each item in the collection.

|

Type Parameters

NameDescription
T

The type of items stored in the IEnumerable<T> collection.

|

See Also

EnumerableExtensions Class

EnumerableExtensions Members

DevExpress.Maui.Mvvm Namespace