Monthly archive: September 13, 2013

Ninject: Passing dynamic parameters to the constructor

Hello poeple! Been a really long time since I posted anything. But, here you go! This is a very interesting snippet about passing dynamic arguments to constructor that will be injected to a controller (say), using ninject. When you register a dependency in ninject, you do the following: kernel.Bind<IData>().To<Data>(); Whereas, if you also want to [...]