public override MethodInfo MakeGenericMethod (params Type [] typeArguments)
{
if (mb.generic_params == null || method_arguments != null)
throw new NotSupportedException (); //FIXME is this the right exception?
if (typeArguments == null)
throw new ArgumentNullException ("typeArguments");
foreach (Type t in typeArguments) {
if (t == null)
throw new ArgumentNullException ("typeArguments");
}
if (mb.generic_params.Length != typeArguments.Length)
throw new ArgumentException ("Invalid argument array length");
return new MethodOnTypeBuilderInst (this, typeArguments);
}