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...

Readonly vs. const?

Answer Posted / j_baghla

Both are used for constant values but in readonly variable
we can assign the value thru expression but we can't assign
value to constant variable thru expression.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what does managed mean in the .net context?

925


Describe difference between inline and code-behind?

1053


How many types of generations are there in a garbage collector?

906


Is .net an object oriented language? What are their components?

886


What are .net applications?

957


How viewstate is being formed and how it is stored on client in .net?

937


What are Satellite Assemblies? How you will create this? How will you get the different language strings?

1961


What is the difference between override and overload in a method?

1080


Will it go to finally block if there is no exception happened?

937


Why inheritance is important?

1070


Tell us what is heap and what is stack?

1055


What are the different types of Classes in .NET?

1032


Explain how to manage pagination in a page using .net?

916


Explain about .Net products?

1067


What is .net3.5?

984