Use comment in C# : Comments : Language Basics C# Examples


C# Examples » Language Basics » Comments »

 

Use comment in C#





A multiline comment

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

single-line comment

A single-line comment begins with a // and ends at the end of the line.
Programmers use multiline comments for longer remarks and single-line comments for brief, line-by-line descriptions.




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Language Basics
» Comments