MEF小实例经典MEF机制简单获取全部方法 经典MEF实现varbank=newDirectoryCatalog("Banks");using(varcon=newCompositionContainer(bank)){con.ComposeParts(bank);varmethods=bank.GetType().GetMethods();