67

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.

Jeffrey Lott
  • 7,171
  • 6
  • 28
  • 28

7 Answers7

60

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

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Francisco Noriega
  • 13,725
  • 11
  • 47
  • 72
15

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

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Daniel Plaisted
  • 16,674
  • 4
  • 44
  • 56
14

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

JamesEggers
  • 12,885
  • 14
  • 59
  • 86
  • 1
    I could have give +10 for you, its really excellent article James, Beginners I highly recommend to start from here. – Sai Oct 24 '14 at 12:44
3

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

Scott Whitlock
  • 13,739
  • 7
  • 65
  • 114
2

Microsoft Docs is a good start

Kathleen Dollard has some good materials as well

Mika Sundland
  • 18,120
  • 16
  • 38
  • 50
kenwarner
  • 28,650
  • 28
  • 130
  • 173
2

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.)

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Nicholas Blumhardt
  • 30,271
  • 4
  • 90
  • 101
1

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

Contango
  • 76,540
  • 58
  • 260
  • 305