Csharp comments

From wikinotes

There are 3x types of comments in csharp.

inline

// inline comment

multiline

/* multiline
 * long
 * comment */

doc-comment

In C#, docstrings are written above the item being documented. Both java and csharp styles are supported (although the content formats are different).

/// <summary> Main function
/// </summary>
///
/// <param name="args">message to print</param>
/// <returns>1 if fails, 0 if succeeds</returns>
static void main(String args[])
/** <summary> Main function
 * </summary>
 * 
 * <param name="args">message to print</param>
 * <returns>1 if fails, 0 if succeeds</returns>
 */
static void main(String args[])