MEF中DirectoryPartCatalog的修改

var catalog = new AttributedAssemblyPartCatalog(Assembly.GetExecutingAssembly()); var container = new CompositionContainer(catalog.CreateResolver());

 

DirectoryPartCatalog更名为DirectoryCatalog

真晕,都改了一年多了现在才知道,现在网上大部分的实例仍然是改名之前的老代码,新技术更新快但应用实在太慢了

posted @ 2010-06-28 21:16  一个人在北京  阅读(745)  评论(0编辑  收藏  举报