Support us .Net Basics C# SQL ASP.NET ADO.NET MVC Slides C# Programs Subscribe Buy DVD

Part 9 - C# Tutorial - Comments

Suggested Videos
Part 6 - Nullable Types
Part 7 - Datatype Conversions
Part 8 - Arrays

In this video, 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

3 comments:

  1. Really nice and helpful blog. Would recommend others to make use of it.

    ReplyDelete
  2. Any way to get a ppt of these videos like other modules.

    thanks

    ReplyDelete
    Replies
    1. I will try and include all the information, that is available in the slides on this blog as soon as I can. I hope you will find it useful.
      http://csharp-video-tutorials.blogspot.com

      I record and upload training videos daily. If you want to receive email alerts when new videos are uploaded, please feel free to subscribe to my youtube channel at the following link.
      http://youtube.com/kudvenkat

      Dot Net Basics, ASP.NET, C#, and SQL Server video tutorial play lists can be found at the following link. All the videos are arranged in a logical sequence in these playlists.
      http://www.youtube.com/user/kudvenkat/videos?view=1&flow=grid

      Delete

If you like this website, please share with your friends on facebook and Google+ and recommend us on google using the g+1 button on the top right hand corner.