What is the correct syntax for an XML comment for a class property?
+3
A:
Install this: http://submain.com/products/ghostdoc.aspx
Right-click on the property, select 'Document This'. Fill in the blanks.
MonkeyWrench
2010-10-15 14:07:44
Ghostdoc is nice, but the auto-generated comments are not really helpful and can be omitted anyway.
BeowulfOF
2010-10-15 14:14:00
Yes, but it automatically adds the correct structure. You can always edit the auto-generated text afterwards. And half the time, if you name your methods logically, it gets the comment correct.
MonkeyWrench
2010-10-15 14:19:06
A:
According to MSDN, link, it appears there isn't an official tag for Class Properties. But, I would use something like this:
/// <summary>Here is an example of a propertylist:
/// <list type="Properties">
/// <item>
/// <description>Property 1.</description>
/// </item>
/// <item>
/// <description>Property 2.</description>
/// </item>
/// </list>
/// </summary>
pattertj
2010-10-15 14:14:16