如何使用 ReSharper 列出解决方案中未使用的方法?

在我继承的一个遗留 ASP.NET 项目中,定义了大量的方法,但这些方法在任何地方都没有用到。

我很熟悉“ Find usages”功能,但是希望能够生成一个方法列表,这些方法在应用程序的任何地方都不会被调用。这种功能是否存在?

39409 次浏览

You can select ReSharper => Inspect => Codes Issues in solution ; And there, you can group by "Issue Type" and you should see all issues that match with "Type or type member is never used" (unused method goes there)

(And if you click right on it, you can select : "Show only "type or type member is never used" issues" .. and there you go ;)

ReSharper[1]