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 tpl in c#?

0 Answers  


What is the major difference between a custom control and user control?

0 Answers   C DAC, CDAC,


What is xml comments in c#?

0 Answers  


What is the do while loop code?

0 Answers  


Can abstract class have constructor c#?

0 Answers  






Does c# provide copy constructor?

0 Answers  


What is streamreader/streamwriter class?

0 Answers  


Why do we use overloading in c#?

0 Answers  


Wcf and what is difference between wcf and web services?

0 Answers  


Is functional interface runnable?

0 Answers  


What does it meant to say “the canonical” form of XML ?

1 Answers  


Explane each and every methods of nterface Queue? Explain About performance issues on retrieving records

0 Answers   DELL,


Categories