Skip to main content
A newer version of this page is available. .

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

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

Namespace: DevExpress.Utils

Assembly: DevExpress.Data.v19.2.dll

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