IEnumerator task for C#