2010-04-13 Sebastien Pouliot <sebastien@ximian.com>
[mono-project.git] / mcs / tests / gtest-anon-15.cs
blob432501e0df5194d3975b03975698ae7e9e189bf0
1 using System;
3 public delegate void Foo<V> (V v);
5 public delegate void Bar<W> (W w);
8 class Test<T>
10 public static void Hello<S> (T t, S s)
12 Foo<long> foo = delegate (long r) {
13 Console.WriteLine (r);
14 Bar<T> bar = delegate (T x) {
15 Console.WriteLine (r);
16 Console.WriteLine (t);
17 Console.WriteLine (s);
18 Console.WriteLine (x);
20 bar (t);
22 foo (5);
26 class X
28 static void Main ()
30 Test<string>.Hello ("World", 3.1415F);