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 the do while loop code?

0 Answers  


Explain what is an interface in c#?

0 Answers  


What is an example of a delegate?

0 Answers  


Is and as in c#?

0 Answers  


What is .net console?

0 Answers  


Can you inherit multiple interfaces?

3 Answers  


What are the return types in c#?

0 Answers  


What are the benefits of using windows services:

0 Answers  


What is Asynchronous call and how it can be implemented using delegates?

0 Answers  


What is the difference between private and protected in c#?

0 Answers  


Is predicate a functional interface?

0 Answers  


Is it possible to execute multiple catch block for a single try statement?

0 Answers   Siebel,


Categories