Question - What are various types of comments in C#, explain with example?
Answer -
C# supports three types of comments-
1. Single line comment
Syntax: //single line
2. Multiple line comment
Syntax: /* multiple lines
*/
3. XML comment
Syntax: /// set erro