这是indexloc提供的服务,不要输入任何密码
Skip to content

DotNET IoC Containers

busterwood edited this page Dec 13, 2024 · 1 revision

Do you really need an IoC library? Prefer passing parameters into constructors in the main method, it is much simpler.

ioc-container-benchmark-performance-comparison

DryIoc

DryIoc is a very fast DI container which also has a MEF compatibility layer.

MEF

MEF was created for plugins, specfically Visual Studio, and supports changes while the program is running (recomposition). MEF can be used as a DI container but is a pain-in-the-a** when composition goes wrong.

MEF2

MEF2 is a lightweight version of MEF, which has been optimized for static composition scenarios and provides faster compositions.

Clone this wiki locally