if (infered_types [i] == null)
return false;
- method = method.MakeGenericMethod (infered_types);
+ method = ((MethodInfo)method).MakeGenericMethod (infered_types);
return true;
}
if (!InferTypeArguments (param_types, arg_types, infered_types))
return false;
- method = method.MakeGenericMethod (infered_types);
+ method = ((MethodInfo)method).MakeGenericMethod (infered_types);
return true;
}
if (!InferTypeArguments (param_types, arg_types, infered_types))
return false;
- method = method.MakeGenericMethod (infered_types);
+ method = ((MethodInfo)method).MakeGenericMethod (infered_types);
return true;
}