A Crash Course on the MEF Primitives

With the Managed Extensibility Framework (MEF), you can use Import and Export attributes to declare what a class consumes and what it offers.  For example, below is an example of two different shapes and a toolbox that imports all available shapes. [Export(typeof(Shape))] public class Square : Shape { // Implementation } [Export(typeof(Shape))] public class Circle…

3