linux-packaging-mono/mono/tests/generic-getgenericarguments.2.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

21 lines
376 B
C#

using System.Reflection;
using System;
public delegate void TestDelegate ();
public class Bla {
public static void test<T> () {}
}
public class main {
public static int Main () {
TestDelegate del = new TestDelegate (Bla.test<object>);
MethodInfo minfo = del.Method;
Type[] args = minfo.GetGenericArguments ();
if (args.Length == 1)
return 0;
return 1;
}
}