【发布时间】:2012-11-02 14:43:31
【问题描述】:
我正在尝试使用 NDepend 删除我们代码库中的死代码。由于我们使用依赖注入,我想找到仅在从注册表库派生的类中使用的接口(和实现):
public class PresenterRegistry : Registry
{
public PresenterRegistry()
{
For<IExamplePresenter>().Use<ExamplePresenter>();
}
}
有什么办法吗?
谢谢!
【问题讨论】:
标签: c# dependency-injection ndepend static-code-analysis