summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-linq-21.cs
blob: 28ae921fe4de96ca5d4ac12fff641d865dce4183 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System;
using System.Linq;

static class Program
{
	public static int Main()
	{
		int i = 0;
		var input = new int[] { 1 };
		var input2 = new int[] { 5 };
		var r = 
			from _ in input
			from y in input2
			select (Action)(() => Console.WriteLine("{0} {1} {2}", i, _, y));
		
		r.ToList () [0] ();
		return 0;
	}
}