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 need escape characters?
Is dictionary reference type c#?
What is the difference between class and namespace?
What is the use of 'using' statement in c#?
If dll and exe files are same it means you can deploy both the files in gac?
What is delegate in c#?
What are the types of comment in c# with examples?
What is the purpose of abstract class in c#?
Why do we need reflection in c#?
Can namespace contain the private class?
What is difference between property and variable in c#?
What is difference between write and writeline?
What to implement on my class Finalize or IDisposable
Why static constructor is parameterless in c#?
Is string nullable in c#?