fork download
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var x = new { Items= new List<int> { 1, 2, 3 }.GetEnumerator() };
  9. var y=x.Items;
  10. while (y.MoveNext())
  11. {
  12. Console.WriteLine(y.Current);
  13. }
  14. }
  15. }
  16.  
Success #stdin #stdout 0.04s 37032KB
stdin
Standard input is empty
stdout
1
2
3