到底为什么不MEF一个DI / IOC容器? [英] Why exactly isn't MEF a DI/IoC Container?

查看:361
本文介绍了到底为什么不MEF一个DI / IOC容器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人说在博客和MS自己的MEF不是另一个IOC容器。

It's been said on the blogosphere and by MS themselves that MEF isn't another IoC Container.

好吧......但是为什么呢?这似乎是一样的我。也许它不如统一或温莎城堡,但它仍然符合定义的,不是吗?

Ok...but why? It seems the same to me. Maybe it's not as good as Unity or castle Windsor, but it still fits the definition, doesn't it?

任何人都可以解释为什么MEF并不是IoC容器像团结和温莎城堡?

Can anyone explain why MEF isn't an IoC Container like Unity or Castle Windsor?

推荐答案

我们在最近的hanselminutes事件涉及这一点。

We covered this in a recent hanselminutes episode.

<一个href="http://www.hanselminutes.com/default.aspx?showID=166">http://www.hanselminutes.com/default.aspx?showID=166

这篇关于到底为什么不MEF一个DI / IOC容器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆