Can I use MEF to create an extensible factory?
问题 Let me start by saying that I am coming at this with limited MEF experience and have accomplished my goals using both Castle and Unity previously. I'm hoping something similar can be done with MEF. In short, what I need is a factory class that can instantiate objects by name. More specifically, I will have an abstract base class such as: public abstract class TheBaseClass { ... } There will be any number of subclasses that derive from the base class: public class OneSubClass : TheBaseClass {