When to use MEF
- by cmaduro
I tried Unity and MEF and plain old new. And I am a bit confused as to when exactly you need to use any of these "patterns". Why would I choose to use MEF or Unity if using new is simpler and satisfies my needs.
MyObject a = new MyObject();
In other words, what needs justify the use of MEF or Unity?