Comments in C#

Please find below points
  • Play a very important role in maintenance of program.
  • Increased the readability and understanding of the code.
  • Two type of comments

             1. Single Line Comment (//)
             2. Multiline Comment (/* */)

Example :
1. Single Line Comment (//)

It is used the special characters "//" and comment only the single line. In the below example only one line is commented.




2. Multi line Comment (/**/)

It is used the special characters "/*.....*/" and comment only the multiple line. In the below example only one line is commented.


Comments

Popular posts from this blog

Assembly Manifest

"this" Keyword