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 need escape characters?

849


Is dictionary reference type c#?

785


What is the difference between class and namespace?

933


What is the use of 'using' statement in c#?

888


If dll and exe files are same it means you can deploy both the files in gac?

901


What is delegate in c#?

916


What are the types of comment in c# with examples?

882


What is the purpose of abstract class in c#?

891


Why do we need reflection in c#?

880


Can namespace contain the private class?

907


What is difference between property and variable in c#?

846


What is difference between write and writeline?

854


What to implement on my class Finalize or IDisposable

944


Why static constructor is parameterless in c#?

1005


Is string nullable in c#?

923