> For the complete documentation index, see [llms.txt](https://technologies.gitbook.io/csharp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://technologies.gitbook.io/csharp/chapter-1-definitions/comments.md).

# Comments

A comment is text that we put in our code to improve readability and maintainability. There are two common styles to write comments in C# programs:

A single-line comment: prefix it with double slash:

// This is a one-line comment

A multi-line comment: use /\* to start the comment and \*/ to finish it:

/\* My comment starts here

and finises here.

\*/

Don't use comments to explain what your code does. use it only when it is needed for sure.
