update readme (#21797)
[mono-project.git] / mcs / tests / gtest-lambda-13.cs
blob1ce58399689d7bcaa219867afc821bce6b87e836
1 using System;
3 class TestUnary
5 static void Foo (Action<int> a)
9 static void Bar ()
11 Foo (str => ++str);
15 class Program
18 static void Foo (Action<string> a)
20 a ("action");
23 static T Foo<T> (Func<string, T> f)
25 return f ("function");
28 static string Bar ()
30 return Foo (str => str.ToLower ());
33 public static void Main ()
35 var str = Foo (s => s);
36 Console.WriteLine (str);
37 Foo (s => Console.WriteLine (s));