title: Register type with Unity to use constructor requiring parameter array
body: <p>Given the following constructor signature:</p>
  
  <pre><code>public MyClass(Class1 arg1, params Class2[] arg2)
  </code></pre>
  
  <p>How can I register MyClass with Unity passing in specific named types using an InjectionConstructor. </p>
  
  <p>I've tried the following:</p>
  
  <pre><code>unityContainer.RegisterType&lt;IMyClass, MyClass&gt;(new InjectionConstructor(typeof(Class1), new ResolvedParameter&lt;IClass2&gt;("name1"), new ResolvedParameter&lt;IClass2&gt;("name2")))
  </code></pre>
  
  <p>but get an exception saying that there is no constructor with signature:</p>
  
  <pre><code>public MyClass(Class1 arg1, Class2 arg2, Class2 arg3)
  </code></pre>
  
  <p>I have got round the problem by overloading the MyClass constructor. Is there any way to do this without overloading  the constructor?</p>