Exemplo n.º 1
0
 void DoTaskAction(Task task, int startIndex, int endIndex)
 {
     for (var index = startIndex; index < endIndex; ++index)
         task.Invoke(index);
     
     if (task.IncrementTask() >= task.GetTaskCount())
         task.SetFinished();
 }