Home > Interview Questions > .Net Framework > What are the types of comment in C# with examples?

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

by John Prathip   on 23/09/2015   Category: .Net Framework   |  Level: Beginner   |  Views: 476    |  Points: 25     |  Silver 


Single line comment

Example:

//This is a Single line comment


ii. Multiple line comment (/* */)

Example:


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



iii. XML Comments (///).

Example:


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


« Will finaly block gets executed if exception has not occured in C#?
» what is boxing and unboxing?
Post Question  |  Question Home

Recent Posts

User Responses


No response found, be the first to review this question.

Submit feedback about this code snippet

Please sign in to post feedback

Latest Posts