Friday, June 12, 2009

Fan (i.e. someone not on the team) MEF Tutorial and Hands On Lab

Continuously Integrating - MEF Tutorial

“You know that everyone’s doing it.  MEF is everywhere.  It’s on the streets, the kid down the block is using, it’s easy to make.  It’s practically addictive.

To get a handle on it I worked through a simple sample of my own and then thought it might make a good one to share so I put together a real quick and dirty hands-on-lab.  The document and code are available from my skydrive here.  Check it out, first one’s free….”

image

They, and I, say that the best way to learn something is to teach it. Well Larry has taken that message and turned it into a quick and dirty MEF HOL with source and shared it with us! Yeah, sharing!  :)

MEF is a topic we’re actually going to get sick of hearing about, it’s sounds so cool, so many are starting to use it and it seems to easy (compared to other like implementations) that everyone is going to do it. And talk about it. And talk more about it. And… and… until we’re MEF’ed out.

But until them, here you go.  ;)

1 comment:

Anonymous said...

To clear error message on valid data, add:

if (!employee.IsValid)
{
this.errors.Text = "Bad data!";
}
else
{
this.errors.Text = "";
}