Click here to Skip to main content
15,886,741 members

Survey Results

Do you use C# style XML comments when programming?   [Edit]

Survey period: 9 May 2005 to 15 May 2005

XML comments make documentation easy and they don't have to be reserved for C# only. Regardless of your programming language, do you use XML comments? (suggested by Matthias Steinbart)

OptionVotes% 
I don't use C# and don't use XML comments at all41032.83
I use C# and don't use them at all20916.73
I only provide summaries15512.41
I provide summaries, return values and parameters37029.62
I provide everything including fully formatted remarks, examples and exception tags.1058.41



 
GeneralAs a block commenter Pin
Ennis Ray Lynch, Jr13-May-05 3:02
Ennis Ray Lynch, Jr13-May-05 3:02 
GeneralI hate comment misuse Pin
Alex Korchemniy11-May-05 10:44
Alex Korchemniy11-May-05 10:44 
GeneralRe: I hate comment misuse Pin
Kevin McFarlane11-May-05 12:05
Kevin McFarlane11-May-05 12:05 
GeneralRe: I hate comment misuse Pin
Ennis Ray Lynch, Jr13-May-05 2:54
Ennis Ray Lynch, Jr13-May-05 2:54 
GeneralUsing the example tag. Pin
Ray Cassick10-May-05 9:40
Ray Cassick10-May-05 9:40 
GeneralRe: Using the example tag. Pin
David Wulff10-May-05 10:41
David Wulff10-May-05 10:41 
Generali like the no comment warnings Pin
feline_dracoform9-May-05 23:58
feline_dracoform9-May-05 23:58 
GeneralRe: i like the no comment warnings Pin
Chris Maunder10-May-05 14:12
cofounderChris Maunder10-May-05 14:12 
GeneralTime saver Pin
WillemM9-May-05 21:15
WillemM9-May-05 21:15 
GeneralRe: Time saver Pin
Anonymous10-May-05 4:06
Anonymous10-May-05 4:06 
GeneralRe: Time saver Pin
WillemM10-May-05 4:09
WillemM10-May-05 4:09 
Generalmulti language examples Pin
Mark Focas9-May-05 20:03
Mark Focas9-May-05 20:03 
I do full code commenting, including examples in C# and VB.Net. The xml comments are then processed via nant and ndoc to make help files which are then integrated into the VS.Net help files, so we get context sensitive help on our own code.

I have seen a system where the example code is extracted , compiled and run automatically, to verify that the examples were still correct. however this seemed fraught with problems, if I read it right, the examples had to run in the class in chronological order, which my code usually isn't.

Xml Commenting has made a huge difference for me.

Another handy (altho reasonably weak) tool is called documentor which gives a preview of how xml commenting will look like outside of VS.Net, and is a good learning point. It was available from Lutz Roeders site, but seems to have been taken down now.

Being in a minority of one, doesn't make you insane
George Orwell
However, in my case it does

GeneralHeh... NO! Pin
Shog99-May-05 11:03
sitebuilderShog99-May-05 11:03 
GeneralRe: Heh... NO! Pin
Blake Miller10-May-05 4:10
Blake Miller10-May-05 4:10 
GeneralI use XML comments and don't use C# Pin
Gary Wheeler9-May-05 10:11
Gary Wheeler9-May-05 10:11 
Generalonly if it will be exposed or will be documented Pin
Almighty Bob9-May-05 8:39
Almighty Bob9-May-05 8:39 
GeneralRe: only if it will be exposed or will be documented Pin
Ray Cassick10-May-05 9:47
Ray Cassick10-May-05 9:47 
GeneralDoxygen rocks Pin
De Nardis Andrea9-May-05 3:54
De Nardis Andrea9-May-05 3:54 
GeneralRe: Doxygen rocks Pin
Anna-Jayne Metcalfe9-May-05 5:39
Anna-Jayne Metcalfe9-May-05 5:39 
GeneralRe: Doxygen rocks Pin
ed welch10-May-05 11:12
ed welch10-May-05 11:12 
GeneralRe: Doxygen rocks Pin
diilbert10-May-05 13:19
diilbert10-May-05 13:19 
GeneralRe: Doxygen rocks Pin
SHaroz11-May-05 18:18
SHaroz11-May-05 18:18 
GeneralDouble-edged sword Pin
Navin9-May-05 2:49
Navin9-May-05 2:49 
GeneralRe: Double-edged sword Pin
Ray Cassick9-May-05 7:25
Ray Cassick9-May-05 7:25 
GeneralRe: Double-edged sword Pin
Blake Miller10-May-05 4:12
Blake Miller10-May-05 4:12 

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.