top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

What are the types of comment in C#?

+1 vote
90 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...