What should I consider when choosing a dependency injection framework for .NET

前端 未结 4 1898
不知归路
不知归路 2020-12-08 04:28

see also Which C#/.NET Dependency Injection frameworks are worth looking into?

There are now many dependency injection frameworks to

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-08 05:27

    It's hard to answer which framework is 'best', but I can tell you which framework is the easiest: The Simple Injector:

    The Simple Injector is an easy-to-use Inversion of Control library for .NET and Silverlight. It solely supports code-based configuration and is an ideal starting point for developers unfamiliar with larger IoC / DI libraries

    http://simpleinjector.codeplex.com/

    Shameless plug btw ;-)

提交回复
热议问题