/// <summary> /// Moves to the next task. See <see cref="IEnumerator.MoveNext()"/> for more information. /// </summary> /// <returns>true if next task found, false if no more tasks.</returns> public bool MoveNext() { bool ok = ++curIndex < nameTask.Length; if (ok) curTask = outer.OpenTask(nameTask[curIndex]); return ok; }
/// <summary> /// Reset task enumeration. See <see cref="IEnumerator.Reset()"/> for more information. /// </summary> public void Reset() { curIndex = -1; curTask = null; }