What?s the difference between // comments, /* */ comments
and /// comments?
Answers were Sorted based on User's Feedback
Answer / daniel
Single-line, multi-line and XML documentation comments.
Is This Answer Correct ? | 11 Yes | 1 No |
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 |
Contrast DTDs versus XSDs. What are their similarities and differences? Which is preferred and why ?
What is the Difference between imperative and interrogative code?
What is the difference between parse and tryparse in c#?
Can constructor be protected in c#?
What is attribute and reflection in c#?
How do you create multiple inheritance in C#?
5 Answers Infosys, KenIndia, Microsoft,
Can c# inherit multiple classes?
Can non-default constructors be used with single call sao?
Explain about accessibility modifier 'protected internal'?
What are expressions c#?
What is Implicit conversion in C#?
Does main have to be static c#?