Clean up unwanted code C#

前端 未结 5 641
自闭症患者
自闭症患者 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:16

    Be careful of code that is invoked via reflection. A lot of refactoring tools will flag this code as not being accessed when in fact they are.

    The safest is to run your unit tests (you do have these already right?) before and after the refactoring to ensure that everything still works.

提交回复
热议问题