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

Contrast DTDs versus XSDs. What are their similarities and differences? Which is preferred and why ?

1 Answers  


What is the Difference between imperative and interrogative code?

2 Answers   Wipro,


What is the difference between parse and tryparse in c#?

0 Answers  


Can constructor be protected in c#?

0 Answers  


What is attribute and reflection in c#?

0 Answers  






How do you create multiple inheritance in C#?

5 Answers   Infosys, KenIndia, Microsoft,


Can c# inherit multiple classes?

0 Answers  


Can non-default constructors be used with single call sao?

0 Answers  


Explain about accessibility modifier 'protected internal'?

0 Answers  


What are expressions c#?

0 Answers  


What is Implicit conversion in C#?

0 Answers  


Does main have to be static c#?

0 Answers  


Categories