C++ C#

ForEach<T>(this Iterator<T>, Action<T>) Method

Class: IteratorHelpers

Performs the specified action on each object of type T returned by the iterator

public void ForEach<T>(this Iterator<T> iterator, Action<T> action)

Parameters

Type Name Description
this Iterator<T> iterator the iterator
Action<T> action a delegate that performs the specified action

Returns: void