Method ForEach
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
collectionIEnumerable<T>Items to enumerate.
actionAction<T>Action to call on each item.
Type Parameters
TType 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
treeIEnumerableTreeData source.
funcAction<object>Action to call on each item.
Remarks
All items are enumerated recursively.