Table of Contents

Method ForEach

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

ForEach<T>(IEnumerable<T>, Action<T>)

Calls specified action for the each item of the IEnumerable<T>.

public static void ForEach<T>(IEnumerable<T> collection, Action<T> action)

Parameters

collection IEnumerable<T>

Items to enumerate.

action Action<T>

Action to call on each item.

Type Parameters

T

Type of the item.

ForEach(IEnumerableTree, Action<object>)

Calls func action for the each item of the IEnumerableTree.

public static void ForEach(IEnumerableTree tree, Action<object> func)

Parameters

tree IEnumerableTree

Data source.

func Action<object>

Action to call on each item.

Remarks

All items are enumerated recursively.