Is there a custom FxCop rule that will detect unused PUBLIC methods?

后端 未结 4 1401
时光取名叫无心
时光取名叫无心 2020-12-10 05:50

I just tried FxCop. It does detect unused private methods, but not unused public. Is there a custom rule that I can download, plug-in that will detect public methods that

4条回答
  •  余生分开走
    2020-12-10 06:28

    How would it know that the public methods are unused?

    By marking a method as public it can be accessed by any application which references your library.

提交回复
热议问题