title: Invoke a method using reflection with the "params" keyword without arguments
body: <p>Just like <a href="https://stackoverflow.com/questions/6484651/calling-a-function-using-reflection-that-has-a-params-parameter-methodbase">this question</a> I'm having issues invoking a method that has the "params" keyword. I keep getting TargetParameterCountException  exceptions. "Parameter count mismatch".
  The goal is to call this method with no parameters:</p>
  
  <pre><code>IList&lt;T&gt; List(params Expression&lt;Func&lt;T, object&gt;&gt;[] includeProperties);
  </code></pre>
  
  <p>Here is what I have so far:</p>
  
  <pre><code>        //Get generic type
          var entityType = typeof(Applicant).Assembly.GetType(string.Format("Permet.BackEnd.ETL.Domain.Models.{0}", tableName));
          //create service that will receive the generic type
          var constructedIService = typeof(IService&lt;&gt;).MakeGenericType(entityType);
  
          //create the argument for the method that we invoke
          var paramsType = typeof(Expression&lt;&gt;).MakeGenericType(typeof(Func&lt;,&gt;).MakeGenericType(entityType, typeof(object))).MakeArrayType();
  
          //instantiate the service using Unity (todo: fix singleton)
          var serviceInstance = UnitySingleton.Container.Resolve(constructedIService, "");
  
          //Invoke the service method "List" by passing it no parameters but telling it the signature to use (it has no overloads)
          //I tried without listing the params since it has no overload but same exception
          //I get exception Parameter count mismatch here
          dynamic data = serviceInstance.GetType().GetMethod("List", new Type[] { paramsType }).Invoke(serviceInstance, new object[] { });
  </code></pre>
  
  <p>Please note that I have tried just passing null and using the overload GetMethod(string name) with exactly the same result.</p>