Is there a standard (like phpdoc or python's docstring) for commenting C# code?
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? You can use XML style comments, and use tools to pull those comments out into API documentation. Here is an example of the comment style: /// <summary> /// Authenticates a user based on a username and password. /// </summary> /// <param name="username">The username.</param> /// <param name="password">The password.</param> /// <returns> /// True, if authentication is successful, otherwise False. /// </returns> /// <remarks> //