27

I have been looking online to find out how to "javadoc" in C# console application. All the articles refer to a webform of C# in the case for that, /// would be the javadoc. What is the way to do it if you are making a console application in visual studio?

Edit: I remember it had to deal with a @ before the method

Machavity
  • 30,841
  • 27
  • 92
  • 100
haysam
  • 401
  • 5
  • 11
  • 16

1 Answers1

36

Three forward slashes begins the doc:

/// <summary>
/// My method does stuff.
/// </summary>
public void MyMethod() { ... }

Then, you can modify the project properties to output XML files that contain the documentation for other developers, or use an application like SandCastle to generate full-fledged documentation web pages.

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Haney
  • 32,775
  • 8
  • 59
  • 68