Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / delegate6.cs
1 using System;
2 using System.Reflection;
3
4 public class T
5 {
6         public void Test ()
7         {
8                 Console.WriteLine ("CreateDelegate success!");
9         }
10
11         public delegate void blah ();
12
13         public static void Main ()
14         {
15                 T t = new T();
16                 Delegate o = Delegate.CreateDelegate (typeof (T.blah), t, "Test");
17                 o.DynamicInvoke (new Object[] {});
18         }
19 }
20
21