linux-packaging-mono/mcs/tests/gtest-linq-28.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

25 lines
329 B
C#

using System;
using System.Linq;
class C
{
public static int Main ()
{
var r = from m in "ab"
let n = from n in "xyz" select n
select n;
int counter = 0;
foreach (var a in r) {
foreach (var b in a) {
Console.WriteLine (b);
counter++;
}
}
if (counter != 6)
return 1;
return 0;
}
}