Use comment in C# : Comments « Language Basics « C# / CSharp Tutorial






A multiline comment

  1. This type of comment must begin with /* and end with */.
  2. Anything between these two comment symbols is ignored by the compiler.

single-line comment

  1. A single-line comment begins with a // and ends at the end of the line.
  2. Programmers use multiline comments for longer remarks and single-line comments for brief, line-by-line descriptions.
1.3.Comments
1.3.1.Use comment in C#
1.3.2.Illustrates the use of comments