Questions et réponses pour le ninject :

Ninject est une structure d'injection de dépendance pour les applications .NET.

7
votes
J'utilise Niject avec ninject.web.mvc. Pour commencer, j'ai créé un simple projet de test dans lequel je veux une instance de ipostrepository code> à partager e ...

6
votes
kernel.Bind<StatisticsPresenter>().ToSelf().InSingletonScope(); kernel.Bind<IStatisticsView>().To<StatisticsForm>(); kernel.Get<IStatisticsView>(); ...