Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

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

#Parameters

Name Type Description
source IEnumerable<T>

The collection of items.

action Action<T>

The action applied to each item in the collection.

#Type Parameters

Name Description
T

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

See Also