1.

What Are The 3 Types Of Comments In C#?

Answer»

1. Single Line Comments. You DEFINE single line comments with // as shown below.
//This is an example for single line COMMENT
2. MULTI line comments. You define multi line comments with /* */ as shown below.
/*This is an example for Multi Line comments*/
3. XML Comments. You define XML comments with /// as shown below. ///This is an example for defining XML comments.

1. Single Line Comments. You define single line comments with // as shown below.
//This is an example for single line comment
2. Multi line comments. You define multi line comments with /* */ as shown below.
/*This is an example for Multi Line comments*/
3. XML Comments. You define XML comments with /// as shown below. ///This is an example for defining XML comments.



Discussion

No Comment Found