var types = AppDomain.CurrentDomain.GetAssemblies() .SelectMany(a => a.GetTypes().Where(t => t.GetInterfaces().Contains(typeof(InterfaceName)))) .ToArray();
var types = AppDomain.CurrentDomain.GetAssemblies() .SelectMany(a => a.GetTypes().Where(t => t.GetInterfaces().Contains(typeof(InterfaceName)))) .ToArray();
转载于:https://www.cnblogs.com/gaobing/p/5369106.html