What?s the difference between // comments, /* */ comments
and /// comments?
Answer Posted / 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 View All Answers
Why do we use dictionary in c#?
Why do we need oops in c#?
How can it prevents DLL Hell assembly versioning in .NET?
What is .cshtml file?
Explain manifest & metadata in c#.
How can I process command-line arguments?
Is enum a value type c#?
Is typeof c#?
What are primitive data types in c#?
Can we extend sealed class in c#?
What are the different types of literals in c#?
Can you use all access modifiers for all types?
What are object pooling and connection pooling and difference? Where do we set the Min and Max Pool size for connection pooling?
What is difference between string and stringbuffer in c#?
How do switch statements work?