Where can I learn about MEF? [closed]

2019-01-20 21:58发布

问题:

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?

Note: I use C#, so if the examples are in C#, that would be awesome.

回答1:

I haven't found a really comprehensive page, but there are a few:

Microsoft Docs

Simple Example from a msdn blog

Code Project's Introduction to MEF (part 1)

MEF 101 part A from Geek with Blogs

MEF 101 part B

Another MSDN blog, a little more history than tutorial



回答2:

Mike Taulty recently did a set of screencasts on using MEF in Silverlight, which should be a good introduction to MEF.



回答3:

I've done an ever growing series on MEF from the very basics into more advanced stuff planned in the near future.

http://randomactsofcoding.blogspot.com/2009/11/working-with-managed-extensibility.html



回答4:

I wrote this MEF demo article on CodeProject, and all the code is open sourced.



回答5:

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 Blog on MSDN.

(MEF is part of the .NET Base Class Libraries.)



回答6:

Microsoft Docs is a good start

Kathleen Dollard has some good materials as well



回答7:

Dependency Injection in .NET by Mark Seemann has a section on MEF, as well as Castle Windsor, StructureMap, Spring.NET, Autofac, and Unity.



标签: c# .net mef