15,898,134 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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?