Ninject dynamic multiple constructor arguments
问题 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. My code is as follows: 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) _