Comments in C#
Please find below points
1. Single Line Comment (//)
2. Multiline Comment (/* */)
- 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 (//)
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.
It is used the special characters "/*.....*/" and comment only the multiple line. In the below example only one line is commented.
Comments
Post a Comment