3

Is there a way to write an xml comment by single string

VS usually help to write such:

///<summary>
///
///</summary>

But i like to write less and want to write like:

///<summary .....   />

Don't you know how it can be done in way VS it can parse?

ies.kras
  • 147
  • 1
  • 7
  • "i like to write less" - doesn't VS put that in automatically when you enter \\\? - Btw. `` is an empty node. Do you want to use it with an attribute, like ``? – Corak Oct 04 '13 at 09:26
  • sorry, meant `///` of course. – Corak Oct 04 '13 at 09:32

1 Answers1

2

Perhaps this will suffice for you:

/// <summary>Your summary here</summary>
Chuck Savage
  • 11,775
  • 6
  • 49
  • 69
  • Since the `summary` tag does not have attributes, and its text content is the actual documentation text, that's as concise as you can make it. *It would be nice if XML allowed `>` to close an element, but that's another story.* – David R Tribble Oct 04 '13 at 18:20