////// 获取程序集中的实现类对应的多个接口 /// /// 程序集 public DictionaryGetClassName(string assemblyName) { if (!String.IsNullOrEmpty(assemblyName)) { Assembly assembly = Assembly.Load(assemblyName); List ts = assembly.GetTypes().ToList(); var result = new Dictionary (); foreach (var item in ts.Where(s => !s.IsInterface)) { var interfaceType = item.GetInterfaces(); result.Add(item, interfaceType); } return result; } return new Dictionary (); }