C# Comments

Comments in C# are used to make the code more readable and understandale to other fellow coder or programmer.

There are two types of comments in C# :

 

1. Single Line Comment : These types of comments can be made using by adding (//) at the start of the line you want to be commented.

 

//Single line Comment example.
Console.Writeline("Hello C#.")

2. Multi Line Comment : These types of comments can be made by adding (/*) at the start of the comment and (*/) at the end of the comment. Everything between them will be commented.

/*This is 
a example of
Multi line Comment.*/
Console.WriteLine("Hello C#.")