我想检索(使用NDepend)在方法中声明的给定类型的所有属性的列表。类似于 warnif count > 0 from m in JustMyCode.Methods where
m.HasAttribute("MyNamespace.MyAttribute")
select new { m, m.Attributes("MyNamespace.MyAttribute") }
这
我想摆脱使用NDepend代码库中的死代码。由于我们使用依赖注入我想找到从注册表基地仅派生类中使用的接口(和实现): public class PresenterRegistry : Registry
{
public PresenterRegistry()
{
For<IExamplePresenter>().Use<ExamplePresenter>();