internal static MethodSignature MakeFromBuilder(Type returnType, Type[] parameterTypes, Type[][][] modifiers, CallingConventions callingConvention, int genericParamCount) { if (genericParamCount > 0) { returnType = returnType.BindTypeParameters(Unbinder.Instance); parameterTypes = BindTypeParameters(Unbinder.Instance, parameterTypes); modifiers = BindTypeParameters(Unbinder.Instance, modifiers); } return new MethodSignature(returnType, parameterTypes, modifiers, callingConvention, genericParamCount); }