ForLoop() публичный Метод

Iterates over the interval.
public ForLoop ( int beginIndex, int endIndex, Action loopBody ) : void
beginIndex int Starting index of the iteration.
endIndex int Ending index of the iteration.
loopBody Action Function to call on each iteration.
Результат void
Пример #1
0
 /// <summary>
 /// Loops from the starting index (inclusive) to the ending index (exclusive), calling the loopBody at each iteration.
 /// The forLoop function will not return until all iterations are complete.
 /// This is meant to be used in a 'fork-join' model; only a single thread should be running a forLoop
 /// at any time.
 /// </summary>
 /// <param name="startIndex">Inclusive starting index.</param>
 /// <param name="endIndex">Exclusive ending index.</param>
 /// <param name="loopBody">Function that handles an individual iteration of the loop.</param>
 public void ForLoop(int startIndex, int endIndex, Action <int> loopBody)
 {
     loopManager.ForLoop(startIndex, endIndex, loopBody);
 }