Hi,
I need to develop a tool for finding repeated/duplicated code in our .cs files.suppose if we use one method twice with different parameters then it should also be considered as a duplicate code. i am not getting the logic to find the repeated code in a file. i am able to find if the whole line got repeated but not able to find partial line repeated.pl help me.thak u.
Need to find repeated code
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Roei BarRank #1,271 · 1.4K reputationPosted Sep 13, 2009, 9:27 AM EDT
here is a graet one
http://osman.in/c/detect-duplicate-c-code/
its completely open source, you can download the source if you want ;-)
but its very good as is and has tons of configuration options
hope this helps
venkat mohan19 reputationPosted Sep 13, 2009, 9:34 AM EDT