1 // Compiler options: -langversion:linq
4 using System
.Collections
.Generic
;
9 public static int Main ()
11 int[] int_array
= new int [] { 0, 1 }
;
16 e
= from int i
in int_array
select i
;
18 foreach (int actual
in e
) {
19 Console
.WriteLine (actual
);
20 if (int_array
[pos
++] != actual
)
24 e
= from int i
in int_array
select 19;
26 foreach (int actual
in e
) {
27 Console
.WriteLine (actual
);
32 Console
.WriteLine ("OK");