1 // Compiler options: -langversion:default
4 using System
.Collections
;
7 static IEnumerable
GetRange (int start
, int end
)
9 for (int i
= start
; i
< end
; i
++)
15 Console
.WriteLine ("GetRange 10..20");
17 foreach (int i
in GetRange (10, 20)){
18 Console
.WriteLine ("i=" + i
);