解决方法
Ninject没有XML配置,对不起但我无法提供直接链接(因为他们的网站有flash元素),但这里是
ninject.org的报价:
Free yourself from XML
Most other .NET dependency injection frameworks are designed around the use of XML to declare type bindings. Rather than forcing you to write cumbersome and error-prone text,Ninject arms you with a fluent interface,which lets you connect the pieces of your application using full-fledged code. This means you can take advantage of the features of the IDE and compiler,like code completion and type-safety.