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


Please Help Members By Posting Answers For Below Questions

Name which controls do not have events?

545


Why do we use public static void main in c#?

463


What is datetime parse in c#?

512


Are cao stateful in nature?

471


Can you declare a class or a struct as constant?

540






Can you inherit multiple abstract classes in c#?

485


What is unsigned int?

521


What does using system mean in c#?

492


What is the default value of singleordefault?

490


What is a collection class in c#?

473


What is literal control

581


How to force my .net app to run as administrator on windows 7?

497


How many parameters can a method have c#?

482


What is the difference between interface and inheritance in c#?

465


What are annotations in c#?

521