C# Questions and Answers

What are the types of comment in C# with examples?

Single line

Eg: //This is a Single line comment


ii. Multiple line (/* */)

/*This is a multiple line comment
We are in line 2
Last line of comment*/


iii. XML Comments (///).

/// summary;
///  Set error message for multilingual language.
/// summary