1 // Compiler options: -langversion:default
4 using System
.Collections
;
10 static IEnumerator
GetRange ()
13 for (i
= start
; i
< end
; i
++)
18 public static int Main ()
25 IEnumerator e
= GetRange ();
26 while (e
.MoveNext ()){
27 Console
.WriteLine ("Value=" + e
.Current
);
28 total
+= (int) e
.Current
;