All Type Coding

Search Here

Comments in c#

Comments 
Comments can be used to document what the program does and what specific blocks or lines of code do. Since the C# compiler ignores comments, you can include them anywhere in a program without affecting your code.
The are following  types of comments in C#
1. Single line comments
2. Multi line comments 
3. Introduction to XML documentation comments  

Single line Comments                       -   //
Multi line Comments                     -   /*  */
XML Documentation Comments      -   ///

To Comment and Uncomment, there are 2 ways
1. Use the designer

2. Keyboard Shortcut: Ctrl+K, Ctrl+C and Ctrl+K, Ctrl+U

No comments :

Post a Comment