top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What are the types of comment in C#?

+1 vote
377 views

I want to know C# Type Comment

posted Nov 10, 2014 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

There are 3 types of comments in C#.
 Single line Comments (//)
 Multi Line Comment (/* */)
 Page/XML Comments (///).

answer Nov 13, 2014 by Manikandan J
+1 vote

There are 3 different types of comments in c#.

(A) Single Line Comments

Ex.. // use for single line comments in C#.

(B) Multi Line Comments

Ex. /* use multi line comments in c#*/

(C) XML tags Comments

Ex. /// use to specify the XML comments in c#

Note - we can use Ctrl+K, Ctrl+C and Ctrl+K, Ctrl+U to Comment or Uncomment selected lines in C#.

answer Nov 25, 2014 by Jdk
...