2010-04-13 Sebastien Pouliot <sebastien@ximian.com>
[mono-project.git] / mcs / tests / gtest-lambda-12.cs
blob6a7ea775323628968db9d692321029c5dfc34b82
3 using System;
5 public delegate void Func<TA> (TA arg0);
7 class Demo
9 static void F<T> (T[] values, T value, Func<T> f)
11 Console.WriteLine (values [0]);
12 f (value);
13 Console.WriteLine (values [0]);
16 static int Main ()
18 int[] a = new int [] { 10 };
19 F (a, 5, i => a [0] = i);
21 if (a [0] != 5)
22 return 1;
24 return 0;