Clean up unwanted code C#

前端 未结 5 621
自闭症患者
自闭症患者 2021-01-05 14:37

I got a C# application with Visual Studio 2005. The code has some 300 KLOC, which has been abused over 3 years.

When I was going through code found out that lot of

5条回答
  •  一向
    一向 (楼主)
    2021-01-05 15:08

    1st use re-sharper as other have suggested.

    Resharper assumes public methods are used somewhere by an external assembly, even if they are not, so search and replace "public " with "private " and recompile.

提交回复
热议问题