C# CommentsThe 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#.
C# Single Line CommentThe single line comment starts with // (double slash). Let's see an example of single line comment in C#. Output: 10 C# Multi Line CommentThe C# multi line comment is used to comment multiple lines of code. It is surrounded by slash and asterisk (/* ..... */). Let's see an example of multi line comment in C#. Output: 20 Next TopicC# Function |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India