Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // From http://mef.codeplex.com/wikipage?title=Hosting%20MEF%20and%20the%20Container&referringTitle=Guide
- using System.ComponentModel.Composition;
- using System.ComponentModel.Composition.Hosting;
- using System.Reflection;
- using System;
- public class Program
- {
- public static void Main(string[] args)
- {
- Program p = new Program();
- p.Run();
- }
- public void Run()
- {
- Compose();
- }
- private void Compose()
- {
- var container = new CompositionContainer();
- container.ComposeParts(this);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement