4 // LINQ and lambdas mix tests
8 static bool Test (Func
<int, bool> f
)
13 static bool Test2 (Func
<int, int> f
)
20 var x
= new int [] { 'a', 'b', 'c' }
;
23 let xy
= Test(c
=> c
== ck
)
25 select Test(c
=> c
== ck
);
28 where
Test(c
=> c
== ck
)
29 select Test(c
=> c
== ck
);
31 int[] int_array
= new int [] { 0, 1, 2, 3, 4 }
;
32 var e3
= from int i
in int_array
group Test2 (gg
=> i
+ 2) by
Test2 (g
=> i
% 2);
37 where
Test(c
=> c
== l
)
42 join b
in x on
Test (a2
=> a2
== a
) equals
Test (b2
=> b2
== b
)
46 join b
in x on
Test (a2
=> a2
== a
) equals
Test (b2
=> b2
== b
) into re6