Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / generic-getgenericarguments.2.cs
1 using System.Reflection;
2 using System;
3
4 public delegate void TestDelegate ();
5
6 public class Bla {
7         public static void test<T> () {}
8 }
9
10 public class main {
11         public static int Main () {
12                 TestDelegate del = new TestDelegate (Bla.test<object>);
13                 MethodInfo minfo = del.Method;
14                 Type[] args = minfo.GetGenericArguments ();
15
16                 if (args.Length == 1)
17                         return 0;
18                 return 1;
19         }
20 }