IEnumerator<string> enumerator=System.IO.RsdnDirectory.GetFilse(@"C:\").GetEnumerator(); for (int i=0;i<10;i++) { enumerator.MoveNext(); }