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

Do you know what is garbage collector?

1058


Explain me what is a design pattern and what is it for?

1194


What is web.config in .net?

1068


what will do to avoid prior case?

1119


What is the difference between reference type and value type?

977


How can you instantiate a tuple?

1067


What is the use of common language runtime?

1110


What is .net code security?

1062


Explain how to produce an assembly?

1061


What is typical about a windows process in regards to memory allocation in dot net?

1129


What is a .DLL and .EXE files called in .NET?

1120


How many types of transactions are there in com + .net ?

1114


Explain how to load the contents of an xml file into an xmldocument object?

1033


What is static constructor, when it will be fired? And what is its use?

1216


What's the problem with .net generics?

1040