开发者

How to systematically remove and re-factor unused C# code?

I have copied an older open source project (C# 2.0-is开发者_JAVA技巧h, VS2010). It does what I need, but it is not great and there is too much junk code. I think only 20% of it is being used. I would like to remove everything that I do not need, before I can start to re-factor. Are there any tools that can help me do this?


Resharper is your best friend. http://www.jetbrains.com/resharper/

Get the trial version.


As well as the refactoring tools suggestions, there are 2 other things that you need.

1./ Source control (so you can roll back if you need to)
2./ Whiteboard (or some other place to nut out a high level design)


NCover will help you find all the unused code assuming you have unit tests.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜