title: Ninject dynamic multiple constructor arguments
body: <p>I have been implementing Dependency Injection into an existing Winforms project and it has been going well so far, however I want to generalise the calling of the Forms, specifically the varying quantity of constructor parameters.</p>
  
  <p>My code is as follows:</p>
  
  <pre><code>Public Shared Function GetForm(formObject As BaseObject, _
      parameters As Dictionary(Of String, Object)) As Form
  
          Select Case formObject.GetType()
              Case GetType(Production.Task)
                  Return SMKernel.Kernel.Get(Of Forms.Production.Domain.ManageTask) _
                      (New Parameters.ConstructorArgument() _
                      {New Parameters.ConstructorArgument("task", _
                          CType(formObject, Production.RequiredTask))})
          End Select
  
      End Function
  </code></pre>
  
  <p>This works fine, the interface(s) are injected correctly, the constructor parameter "task" is populated and the Form works as expected.</p>
  
  <p>As you can see I have a Dictionary that can contain several parameters which I need to add to the <code>ConstructorArgument</code> part of the <code>Get</code> method. Looking at the IntelliSense, I should be able to pass in an array of <code>ConstructorArgument</code> objects, however no matter what I have tried, it doesn't seem to work for one reason or another.</p>
  
  <p>How do you accomplish this in Ninject if it is at all possible. If this way isn't possible, how can you pass multiple parameters into a Form's constructor via Ninject?</p>