2010-05-25 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / gtest-lambda-21.cs
blob9a3f4912d46dc51389b67503ed19b06578349932
1 using System;
3 class Program
5 static void Foo (Action<string> a)
7 a ("action");
10 static T Foo<T> (Func<string, T> f)
12 return f ("function");
15 static string Bar ()
17 return Foo (str => str.ToLower ());
20 static int Main ()
22 var str = Foo (s => s);
23 Console.WriteLine (str);
24 if (str != "function")
25 return 1;
26 Foo (s => Console.WriteLine (s));
27 return 0;