MethodBuilder should return null for generic arguments of non generic method.
authorRodrigo Kumpera <kumpera@gmail.com>
Mon, 13 Sep 2010 17:24:45 +0000 (14:24 -0300)
committerRodrigo Kumpera <kumpera@gmail.com>
Mon, 13 Sep 2010 17:26:30 +0000 (14:26 -0300)
commita0182452a39770976b9e4a3f43fd447207af2a06
tree890379612c41d970b082b7f4b8d13c6c04dbd26f
parent705cfc4639766b1a77496508812047fb20750747
MethodBuilder should return null for generic arguments of non generic method.

* MethodBuilder.cs (GetGenericArguments): Return null if not
generic.

* MethodBuilderTest.cs: Add test for #384127.

Fixes bug #384127.
mcs/class/corlib/System.Reflection.Emit/MethodBuilder.cs
mcs/class/corlib/Test/System.Reflection.Emit/MethodBuilderTest.cs