日期:2014-05-20  浏览次数:21005 次

Unity/MEF/Prism
最近研究Prism4看的云里雾里的

各位给解释下Prism4中的MEF和Unity到底差别在哪里?

如果我想实现模块化、界面逻辑分析、可扩展的应用程序,是不是只用MEF或者Unity加个MVVM模式之类的就可以了?那prism用来干嘛?

------解决方案--------------------
没有研究过Prism4...
------解决方案--------------------
纯顶。。。我学的东西还是太少了。。
------解决方案--------------------
还没接触过,就只知道Unity是个依赖注入的容器。。。
------解决方案--------------------
神马东瞎啊。。。。没玩过
------解决方案--------------------
Unity vs MEF

Unity is mostly used for static dependencies and is more an “internal” technology, meaning outsiders do not need to know that unity is being used in the application.

MEF should be used for dynamic dependencies, it is grate at dynamically loading components and with the use of attributes it make creating application extensions or an application that can be extended by others easy and streamlined.


------解决方案--------------------
没有研究过