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

Mention what is the difference between “ActionResult” and “ViewResult” ?

996


What is meant by bootstrap in mvc5?

1087


What is associationset? : Entity framework

1000


What is the full form of sp?

916


What is asp net framework?

921


What are advantages of Dependency Injection (DI) in ASP.Net MVC?

1032


Explain two instances where routing is not implemented or required?

1001


how to disable the lazy loading framework?

1014


What is mvc entity framework?

907


What is meant by domain model?

970


What is the difference between .net core and .net framework?

928


How we can invoke child actions in ASP.Net MVC?

1053


what is minimum requirement for entity framework applications to run?

1044


What are the Core features of ASP.NET MVC?

1017


Is it possible to combine asp.net webforms and asp.mvc and develop a single web application?

942