Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Why do we use dictionary in c#?

915


Why do we need oops in c#?

868


How can it prevents DLL Hell assembly versioning in .NET?

966


What is .cshtml file?

879


Explain manifest & metadata in c#.

919


How can I process command-line arguments?

917


Is enum a value type c#?

958


Is typeof c#?

933


What are primitive data types in c#?

884


Can we extend sealed class in c#?

861


What are the different types of literals in c#?

976


Can you use all access modifiers for all types?

913


What are object pooling and connection pooling and difference? Where do we set the Min and Max Pool size for connection pooling?

1069


What is difference between string and stringbuffer in c#?

889


How do switch statements work?

839