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

前端 未结 4 1901
不知归路
不知归路 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:21

    Spring and Unity are Xml heavy.

    I would disagree with that statement for Unity; you can write

    container.RegisterType();
    

    and do your setup in code using a fluent-style interface. Personally I like Unity.

提交回复
热议问题