var types = AppDomain.CurrentDomain.GetAssemblies()
 .SelectMany(a => a.GetTypes().Where(t => t.GetInterfaces().Contains(typeof(InterfaceName))))
 .ToArray();

 

相关文章: