What?s the difference between // comments, /* */ comments
and /// comments?

Answers were Sorted based on User's Feedback



What?s the difference between // comments, /* */ comments and /// comments?..

Answer / daniel

Single-line, multi-line and XML documentation comments.

Is This Answer Correct ?    11 Yes 1 No

What?s the difference between // comments, /* */ comments and /// comments?..

Answer / mukesh

// This is used when you want to comment only single line

Example-
// Old code


/**/ This is used when you want to comment more then one
line

Example-

/* This is old code
this is commented by Z- logic has been changed */


/// This comments are used in asp.net for any method
description. When this comment is typed on any method then
this comments creates description of method as
<Parameter>
<output>

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is Delay Signing?

1 Answers   ACS,


Which is the best way for keeping the data in XML or SQL server..and why?

8 Answers   Infosys, Satyam,


Hi all,I am the beginner. Please tell use of finally block.

6 Answers   IBM,


what is the difference between int and Int32?

5 Answers   TCS,


Can we use "this" command within a static method?

0 Answers  






What is transparent caching with aop ?

0 Answers  


What is difference between singleton and static class in c#?

0 Answers  


What is multithreading with .net?

0 Answers  


Is c# scripting language?

0 Answers  


How can I produce an assembly?

0 Answers  


What is the difference between a class and an object c#?

0 Answers  


What does clr stand for?

0 Answers  


Categories