What are the types of comments supported by C#?

What will be an ideal response?


There are three types of comments in C#:
* Line comments start with two forward slashes (//) and continue to the end of the current line. Line comments can appear on a line by themselves, or they can occupy part of a line following executable code.
* Block comments start with a forward slash and an asterisk (/*) and end with an asterisk and a forward slash (*/ ). Block comments can appear on a line by themselves, on a line before executable code, or after executable code. When a comment is long, block comments can extend across as many lines as needed.
* C# also supports a special type of comment used to create documentation from within a program. These comments, called XML-documentation format comments, use a special set of tags within angle brackets (<>). (XML stands for Extensible Markup Language.)

Computer Science & Information Technology

You might also like to view...

Consider the statements below:

String a = "JAVA: "; String b = "How to "; String c = "Program"; Which of the statements below will create the String r1 = "JAVA: How to Program"? a. String r1 = c.concat(b.concat(a)); b. String r1 = a.concat(b.concat(c)); c. String r1 = b.concat(c.concat(a)); d. String r1 = c.concat(c.concat(b));

Computer Science & Information Technology

First-generation computers used vacuum tubes

Indicate whether the statement is true or false

Computer Science & Information Technology

How do the get and set statements alter the interface with your class?

What will be an ideal response?

Computer Science & Information Technology

All of the following are functions of an operating system EXCEPT:

a. Database management b. Process management c. Resource management d. Access management

Computer Science & Information Technology