title: Parameter count mismatch at Invoke
body: <p>I am having that error on this method.</p>
  
  <pre><code>public static FReturn&lt;T&gt; GetByParameters&lt;T&gt;(FObjectParametersb parameters, bool useOr = false) where T : new();
  
  
  public class FObjectParameters : ICollection&lt;FObjectParameter&gt;, IEnumerable&lt;FObjectParameter&gt;, IEnumerable
  {
      //some code
  }
  
  var parameters = new FObjectParameters();
  
  foreach (KeyValuePair&lt;string, string&gt; item in Param)
      parameters.Add(item.Key, item.Value);
  
  var getMethod = MainType.BaseType.BaseType.GetMethod("GetByParameters").MakeGenericMethod(MainType);
  
  object Invoke = getMethod.Invoke(null, new object[] { parameters });
  </code></pre>