我有一个项目包含很多参考. 我需要找到实现IMyInterface接口的所有类型.
我试过AppDomain.CurrentDomain.GetAssemblies().SelectMany(x => x.GetTypes())但它没有返回引用中的所有类型.
AppDomain.CurrentDomain.GetAssemblies().SelectMany(x => x.GetTypes())
我怎么做?
.net c# reflection
.net ×1
c# ×1
reflection ×1