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 / pavan

both of them does the same work these value cannot be
changed
but with a samll difference
using const we can assign a value before compile time
but using readonly we can assign value to the varible ones
in runtime

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a dll be changed to an exe?

1069


How do you trigger the paint event in system.drawing?

940


What is a variable of implicit type and what is its scope?

873


Explain what is the difference between a class and an object?

1165


Explain about .Net products?

1067


what user controls are and what server controls are and the differences between the two.

1981


Is .net a programming language?

909


Explain me difference between public and static modifiers?

995


What is difference between static page and dynamic page?

940


What is .net debug & trace?

1007


What is a garbage collector?

1069


Explain soap and xml?

966


Tell us what is heap and what is stack?

1054


Types of evidence in .net with context to CAS

2108


Tell us why do we use the “using” statement?

974