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.
Last updated