コード例 #1
0
 private void InitializeMEF()
 {
     try
     {
         MEF.Compose(Assembly.GetExecutingAssembly(), "MediaPlayer");
         MEF.Build(this);
     }
     catch (ReflectionTypeLoadException ex)
     {
         foreach (var exception in ex.LoaderExceptions)
         {
             MessageBox.Show(exception.Message, ex.GetType().ToString());
         }
     }
 }