How do I generate these kind of summaries in Visual Studio?
///
/// Returns a number
///
///
Put the cursor on the line just before the method or class that you want to document and type "///". Visual Studio will generate the XML doc tags, and you can fill in the details.
I can recommend GhostDoc to make this even easier.
Like George says, /// on the line just above will autogenerate it.
Beyond the boilerplate comment template it gives you, I'd recommend taking a look at the other tags you may use: http://msdn.microsoft.com/en-us/library/5ast78ax.aspx
This may be used in combination with other tools such as Sandcastle to automatically build CHM guides, etc.