int count = pi.Length-1;
if (pi.Length == 0) {
- types = TypeManager.NoTypes;
+ types = Type.EmptyTypes;
} else {
types = new Type [pi.Length];
for (int i = 0; i < pi.Length; i++)
if (count < 0)
return;
- if (mb.Mono_IsInflatedMethod) {
- MethodInfo generic = mb.GetGenericMethodDefinition ();
+ MethodBase generic = TypeManager.DropGenericMethodArguments (mb);
+ if (generic != mb) {
gpd = TypeManager.GetParameterData (generic);
-
last_arg_is_params = gpd.HasParams;
return;
}