Binboo.BinbooMainForm.Catalog C# (CSharp) Метод

Catalog() приватный статический Метод

private static Catalog ( ) : ComposablePartCatalog
Результат ComposablePartCatalog
        private static ComposablePartCatalog Catalog()
        {
            try
            {
                return new AggregateCatalog(new DirectoryCatalog("Plugins"), new TypeCatalog(typeof(IStorageManager)));
            }
            catch(Exception ex)
            {
                MessageBox.Show("Binboo cannot continue due to an exception during initialization: " + ex);
                Environment.Exit(-1);
                // Make the compiler happy
                return null;
            }
        }