Still need help understanding why Ninject might be better than manual DI
问题 This is an extension to the question Why do I need an IoC container as opposed to straightforward DI code? I've been learning Ninject and came up with the following example, the example goes through the manual way of doing DI and the Ninject way of doing DI: class Program { static void Main(string[] args) { NinjectWay(); ManualWay(); Console.ReadKey(); } private static void ManualWay() { Console.WriteLine("ManualWay***********************"); IWeapon sword = new Sword(); Samurai samurai = new