The documentation gives an example of how to use Simple Injector in WinForms projects. The example shows the code for the main view/main form with only a DI constructor.
The problem is, that the code as given throws an exception in one of the SI lines stating that the main view requires a parameterless constructor!
If I put the default constructor then the form does not work well.
The documentation gives an example of how to use Simple Injector in WinForms projects. The example shows the code for the main view/main form with only a DI constructor.
The problem is, that the code as given throws an exception in one of the SI lines stating that the main view requires a parameterless constructor!
If I put the default constructor then the form does not work well.