C# 我在哪里可以了解 MEF?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2057994/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where can I learn about MEF?
提问by Jeffrey Lott
I watched the DNR TV episode with Glenn Block and it looks like MEF would be useful for my company. I am trying to find out more information on it's strengths and weaknesses and some sample projects that use it. Are there any good blogs/tutorials on using MEF?
我和 Glenn Block 一起看了 DNR 电视剧集,看起来 MEF 对我的公司有用。我试图找出更多关于它的优点和缺点的信息以及一些使用它的示例项目。有没有关于使用 MEF 的好博客/教程?
Note: I use C#, so if the examples are in C#, that would be awesome.
注意:我使用 C#,所以如果示例是用 C# 编写的,那就太棒了。
采纳答案by Francisco Noriega
I haven't found a really comprehensive page, but there are a few:
我还没有找到一个真正全面的页面,但有一些:
Simple Example from a msdn blog
Code Project's Introduction to MEF (part 1)
Code Project 对 MEF 的介绍(第 1 部分)
MEF 101 part A from Geek with Blogs
来自 Geek with Blogs 的 MEF 101 A 部分
回答by kenwarner
Microsoft Docsis a good start
Microsoft Docs是一个好的开始
Kathleen Dollardhas some good materials as well
Kathleen Dollard也有一些很好的材料
回答by Daniel Plaisted
Mike Taulty recently did a set of screencastson using MEF in Silverlight, which should be a good introduction to MEF.
Mike Taulty 最近做了一组关于在 Silverlight 中使用 MEF的截屏视频,这应该是对 MEF 的一个很好的介绍。
回答by JamesEggers
I've done an ever growing series on MEF from the very basics into more advanced stuff planned in the near future.
我已经在 MEF 上做了一个不断增长的系列,从非常基础到在不久的将来计划的更高级的东西。
http://randomactsofcoding.blogspot.com/2009/11/working-with-managed-extensibility.html
http://randomactsofcoding.blogspot.com/2009/11/working-with-managed-extensibility.html
回答by Scott Whitlock
I wrote this MEF demo articleon CodeProject, and all the code is open sourced.
我在 CodeProject 上写了这篇 MEF 演示文章,所有代码都是开源的。
回答by Nicholas Blumhardt
If you're looking for information on the latest version of MEF that is shipping with the next .NET Framework, the definitive source of information is the BCL Team Blogon MSDN.
如果您正在寻找有关随下一个 .NET Framework 一起提供的最新版 MEF 的信息,则最终的信息来源是MSDN 上的BCL 团队博客。
(MEF is part of the .NET Base Class Libraries.)
(MEF 是 .NET 基类库的一部分。)
回答by Contango
Dependency Injection in .NET by Mark Seemann has a section on MEF, as well as Castle Windsor, StructureMap, Spring.NET, Autofac, and Unity.
Mark Seemann 在 .NET 中的依赖注入有一个关于 MEF 的部分,以及 Castle Windsor、StructureMap、Spring.NET、Autofac 和 Unity。