Saturday 25 January 2014

Comment in C#

                                                                                                                                Previous...
                                                                                                                                               Next.....





In this Tutorial, we will discuss
1. Single line comments
2. Multi line comments 
3. Introduction to XML documentation comments  



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



Comments are used to document what the program does and what specific blocks or lines of code do. C# compiler ignores 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

Note: Don't try to comment every line of code. Use comments only for blocks or lines of code that are difficult to understand 



                                                                                                                              Previous...
                                                                                                                                               Next.....

No comments:

Post a Comment

C# program Selection Sorting

Selection sort is a straightforward sorting algorithm. This algorithm search for the smallest number in the elements array and then swap i...