<p>Is there a standard convention (like phpdoc or python's docstring) for commenting C# code so that class documentation can be automatically generated from the source code?</p>

[{'answer_id': 34530, 'author': 'jason saldo', 'author_id': 1293, 'author_profile': 'https://Stackoverflow.com/users/1293', 'pm_score': 2, 'selected': False, 'text': '<pre><code>/// &lt;summary&gt;\n///\n/// &lt;/summary&gt;\n/// &lt;param name="strFilePath"&gt;&lt;/param&gt;\n</code></pre>\n\n<p><a href="http://msdn.microsoft.com/en-us/magazine/cc302121.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/magazine/cc302121.aspx</a></p>\n'}, {'answer_id': 34532, 'author': 'hamishmcn', 'author_id': 3590, 'author_profile': 'https://Stackoverflow.com/users/3590', 'pm_score': 1, 'selected': False, 'text': '<p>C# has built in <a href="https://learn.microsoft.com/en-us/dotnet/csharp/codedoc" rel="nofollow noreferrer">documentation commands</a>\nHave fun!</p>\n'}, {'answer_id': 34533, 'author': 'Forgotten Semicolon', 'author_id': 1960, 'author_profile': 'https://Stackoverflow.com/users/1960', 'pm_score': 6, 'selected': True, 'text': '<p>You can use XML style comments, and use tools to pull those comments out into API documentation.</p>\n\n<p>Here is an example of the comment style:</p>\n\n<pre><code>/// &lt;summary&gt;\n/// Authenticates a user based on a username and password.\n/// &lt;/summary&gt;\n/// &lt;param name="username"&gt;The username.&lt;/param&gt;\n/// &lt;param name="password"&gt;The password.&lt;/param&gt;\n/// &lt;returns&gt;\n/// True, if authentication is successful, otherwise False.\n/// &lt;/returns&gt;\n/// &lt;remarks&gt;\n/// For use with local systems\n/// &lt;/remarks&gt;\npublic override bool Authenticate(string username, string password)\n</code></pre>\n\n<p>Some items to facilitate this are:</p>\n\n<p><a href="http://www.roland-weigelt.de/ghostdoc/" rel="noreferrer">GhostDoc</a>, which give a single shortcut key to automatically generate comments for a class or method.\n<a href="http://blogs.msdn.com/sandcastle/about.aspx" rel="noreferrer">Sandcastle</a>, which generates MSDN style documentation from XML comments.</p>\n'}, {'answer_id': 34543, 'author': 'Dan Herbert', 'author_id': 392, 'author_profile': 'https://Stackoverflow.com/users/392', 'pm_score': 1, 'selected': False, 'text': '<p>Microsoft uses "<a href="http://msdn.microsoft.com/en-us/library/b2s063f7.aspx" rel="nofollow noreferrer">XML Documentation Comments</a>" which will give IDE intellisense descriptions and also allow you to auto-generate MSDN-style documentation using a tool such as Sandcastle if you turn on the generation of the XML file output.</p>\n\n<p>To turn on the generation of the XML file for documentation, right click on a project in visual studio, click "Properties" and go to the "Build" tab. Towards the bottom you can specify a location for your XML comments output file.</p>\n'}, {'answer_id': 34677, 'author': 'travis', 'author_id': 1414, 'author_profile': 'https://Stackoverflow.com/users/1414', 'pm_score': 1, 'selected': False, 'text': '<p>The previous answers point out the XML syntax perfectly. I just wanted to throw in my recommendation for the <a href="http://ndoc.sourceforge.net/" rel="nofollow noreferrer">free (and open-source) nDoc help library generator</a> that parses all comments in a project. </p>\n'}, {'answer_id': 699654, 'author': 'GameFreak', 'author_id': 26659, 'author_profile': 'https://Stackoverflow.com/users/26659', 'pm_score': 0, 'selected': False, 'text': '<p>I was always told to use block comments opened with 2 or more asterisks do delimit documentation comments.</p>\n\n<pre><code>/**\nDocumentation goes here.\n(flowerboxes optional) \n*/\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/34516', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/305/']