Skip to main content

DXCollectionBase<T>.ForEach(Action<T>) Method

Performs the specified action on each element of the DXCollectionBase<T>.

Namespace: DevExpress.Utils

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

public void ForEach(
    Action<T> action
)

Parameters

Name Type Description
action Action<T>

The Action<T> delegate to perform on each element of the DXCollectionBase<T>.

Remarks

The Action<T> is a delegate to a method that performs an action on the object passed to it. The elements of the current DXCollectionBase<T> are individually passed to the Action<T> delegate.

See Also