adspace
Answer Posted / Renu Sirohi
C# offers three types of comments:
1. Single-line comment (//): It starts with two forward slashes (//) and extends to the end of the line.
2. Multi-line comment (/* */): This type of comment can span multiple lines, as it begins with /* and ends with */.
3. Verbatim multi-line comment (@): This is used for embedding C++ or SQL code inside a string in C#. It starts with @ followed by three double quotes (""").
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers