Click here to Skip to main content
15,888,162 members

Comments by Neil Haughton (Top 2 by date)

Neil Haughton 19-Aug-10 3:53am View    
In this case, probably quite a lot. I'm identifying all the comment lines, and within those I want to identify as closely as practical which are the commented-out code and which are genuine comments. This will tell me(broadly) how extensively the code is commented, and how progress is being made cleaning up unwanted (dead) code, two metrics I need to report. It's a big application so simply reading the code to achieve this is not practical. So if I can apply some process to a commented line to see if it is very probably old code, that will suffice. It doesn't have to be precisely definitive, and I can see from your explanation why that would be very difficult to achieve - although the C# compiler clearly does exactly what I am suggesting in order to compile the code in the first place. If I can apply the same process to commented lines I will be home and dry.
Neil Haughton 18-Aug-10 12:58pm View    
Okay, it would be a challenge to be precise and complete. I can see that, but something that was mostly right would suffice.

Is there an alternative approach I could try using something in the CodeDom napespace, perhaps?