title: how to resolve the System.Reflection.TargetParameterCountException in WindowsForms C#?
body: <p>I'm getting the Parameter count mismatch exception.</p>
  
  <blockquote>
    <p>Unhandled Exception: System.Reflection.TargetParameterCountException: Parameter count mismatch.</p>
  </blockquote>
  
  <p>My code part for invoking the MethodInfo base is as below</p>
  
  <pre><code>Type customerType = executingAssembly.GetType("LateBinding.Customer");
          object customerInstance = Activator.CreateInstance(customerType);
          MethodInfo method = customerType.GetMethod("printCustomerDetails");
          string customerObject = (string)method.Invoke(customerInstance, new object[0]);
  </code></pre>
  
  <p>I have tried to invoke the below method</p>
  
  <pre><code>public string printCustomerDetails(object parameters)
      {
          string CustomerName = "";
          foreach (object customer in parameters)
          {
              CustomerName = CustomerName + " " + customer;
          }
          return CustomerName.Trim();
      }
  </code></pre>
  
  <p>Is there anything I missed to invoke MethodInfo base?</p>