1 // Compiler options: -langversion:linq
4 using System.Collections.Generic;
9 public static int Main ()
11 int[] int_array = new int [] { 0, 1 };
15 e = from int i in int_array where i > 0 select i;
17 if (e.ToList ()[0] != 1)
20 e = from int i in int_array where i == 0 select i + 1;
22 if (e.ToList ()[0] != 1)
25 Console.WriteLine ("OK");