1 // Compiler options: -langversion:default
4 using System
.Collections
;
9 public IEnumerable
Get (int a
)
11 Console
.WriteLine ("Sending: " + a
);
14 Console
.WriteLine ("Sending: " + j
);
18 public static IEnumerable
GetS (int a
)
27 IEnumerable
Get (int a
)
34 static IEnumerable
GetS (int a
)
46 foreach (int x
in y
.Get (5)){
53 foreach (int x
in GetS (3)){
61 foreach (int x
in s
.Get (100)){
62 Console
.WriteLine ("Got: " + x
);
69 foreach (int x
in S
.GetS (1)){
75 Console
.WriteLine ("OK");