Click here to Skip to main content
15,910,787 members

Survey Results

How do you comment your C# code?   [Edit]

Survey period: 13 Oct 2003 to 19 Oct 2003

C# devs get the new look XML style comments, but do you use them? (suggested by Rakesh Rajan)

OptionVotes% 
Using the /// XML documentation format where appropriate39538.69
Always using the old // or /* format46245.25
Comments? We're meant to comment our code?16416.06



 
General#if 0 Pin
Shog913-Oct-03 11:43
sitebuilderShog913-Oct-03 11:43 
GeneralRe: #if 0 Pin
Navin14-Oct-03 14:23
Navin14-Oct-03 14:23 
General!!! Pin
Mazdak13-Oct-03 7:40
Mazdak13-Oct-03 7:40 
GeneralRe: !!! Pin
J. Dunlap13-Oct-03 9:41
J. Dunlap13-Oct-03 9:41 
GeneralRe: !!! Pin
Alvaro Mendez14-Oct-03 4:56
Alvaro Mendez14-Oct-03 4:56 
GeneralAnother form of comments Pin
leppie13-Oct-03 7:08
leppie13-Oct-03 7:08 
GeneralXML is great but... Pin
Rakesh Rajan13-Oct-03 6:55
Rakesh Rajan13-Oct-03 6:55 
GeneralRe: XML is great but... Pin
kaschimer13-Oct-03 8:56
kaschimer13-Oct-03 8:56 
You're right. It's just XML after all. And the feature in Visual Studio to generate documentation web pages leaves a lot to be desired. However, there is one free tool in particular that makes XML commenting well worth it.

It's called NDoc[^]. From the site:


NDoc generates class libraries documentation from .NET assemblies and the XML documentation files generated by the C# compiler (or an add-on tool for VB.NET).

NDoc uses add-on documenters to generate documentation in several different formats, including the MSDN-style HTML Help format (.chm), the Visual Studio .NET Help format (HTML Help 2), and MSDN-online style web pages.

The NDoc source code is freely available under a certified Open Source license.


I recommend you take a look. It saved a lot of time when I was working on a rather LARGE project with many different components and APIs that the other developers had to know.

"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
GeneralRe: XML is great but... Pin
WillemM15-Oct-03 19:53
WillemM15-Oct-03 19:53 
GeneralRe: XML is great but... Pin
bjoernen15-Oct-03 21:42
bjoernen15-Oct-03 21:42 
GeneralRe: XML is great but... Pin
Anonymous16-Oct-03 19:05
Anonymous16-Oct-03 19:05 
GeneralRe: XML is great but... Pin
Gavin Gregson15-Oct-03 22:11
Gavin Gregson15-Oct-03 22:11 
General#3 shouldn't even be an issue! Pin
Heath Stewart13-Oct-03 3:48
protectorHeath Stewart13-Oct-03 3:48 
GeneralRe: #3 shouldn't even be an issue! Pin
J. Dunlap13-Oct-03 18:44
J. Dunlap13-Oct-03 18:44 
GeneralRe: #3 shouldn't even be an issue! Pin
peterchen14-Oct-03 12:54
peterchen14-Oct-03 12:54 
GeneralI use Pin
Tomas Petricek13-Oct-03 1:50
Tomas Petricek13-Oct-03 1:50 
GeneralRe: I use Pin
Rakesh Rajan13-Oct-03 6:54
Rakesh Rajan13-Oct-03 6:54 
GeneralRe: I use Pin
Tomas Petricek13-Oct-03 7:06
Tomas Petricek13-Oct-03 7:06 
GeneralI use both Pin
Andrew Torrance13-Oct-03 1:06
Andrew Torrance13-Oct-03 1:06 
General/// - doxygen style Pin
peterchen12-Oct-03 23:39
peterchen12-Oct-03 23:39 
GeneralRe: /// - doxygen style Pin
Paul Watson13-Oct-03 0:48
sitebuilderPaul Watson13-Oct-03 0:48 
GeneralRe: /// - doxygen style Pin
peterchen13-Oct-03 1:38
peterchen13-Oct-03 1:38 
GeneralRe: /// - doxygen style Pin
Paul Watson13-Oct-03 1:42
sitebuilderPaul Watson13-Oct-03 1:42 
GeneralRe: /// - doxygen style Pin
peterchen13-Oct-03 1:46
peterchen13-Oct-03 1:46 
GeneralRe: /// - doxygen style Pin
Frode N. Rosand14-Oct-03 21:13
Frode N. Rosand14-Oct-03 21:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.