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 const and readonly ?

Answer Posted / kirti

You can initialize readonly variables to some runtime values. Let's say your program uses current date and time as one of the values that won't change. This way you declare public readonly string DateT = new DateTime().ToString().

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What you mean by routing in mvc?

1160


What are ajax helpers in asp.net mvc?

1129


What is separation of concerns in asp.net mvc?

1216


What is difference between Viewbag and Viewdata in ASP.NET MVC?

1096


What is domain class model?

1101


In .net compact framework, can we free memory explicitly without waiting for garbage collector to free the memory?

1128


What is the difference between model and entity?

1094


Which version of .net framework is installed?

1030


What you mean by routing in asp.net mvc?

1111


What are sections?

1198


Does windows 10 need .net framework?

1063


What are the possible razor view extensions?

1050


What is definingquery in entity framework? : Entity framework

1043


In which assembly is the mvc framework defined?

1088


Explain the advantage of packaging over xcopy in .net?

1034