c# - How do you find duplicate methods? -


without examining each method, how can find duplicate methods in class? duplicate methods defined same code within method body and, not guaranteed, same method signature.

i'm cleaning up, re-designing, , refactoring projects. 1 thought have copy utility methods 1 class, find duplicates, delete them, , move on next task. i'd rather not @ each method individually find duplicates.

edit 1: clear, duplicate methods identical code. result of copying & pasting. not finding duplicated functionality, i.e., method different name , different method structure varibale names.

there tools try automatically find duplicated code (within same class, or across entire project), while allowing minor edits (e.g., variable renames, changing constants, etc.) don't affect overall behaviour of method.

a short list can found @ duplicate code (wikipedia).


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -