Posts

Showing posts with the label #C# #Comments

C# Comments

  The C# comments are statements that are not executed by the compiler. The comments in C# programming can be used to provide explanation of the code, variable, method or class. By the help of comments, you can hide the program code also. There are two types of comments in C#. Single Line comment Multi Line comment C# Single Line Comment The single line comment starts with // (double slash). Let's see an example of single line comment in C#. using  System;       public   class  CommentExample       {           public   static   void  Main( string [] args)           {                int  x = 10; //Here, x is a variable               ...