//这里找出了实现IOutputArray接口的所有类 private void FindAllClass() { var types = AppDomain.CurrentDomain.GetAssemblies() .SelectMany(a => a.GetTypes().Where(t => t.GetInterfaces().Contains(typeof(IOutputArray)))) .ToArray(); foreach (var v in types) { Console.WriteLine(v.FullName); } }