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 key advantage of using entity framework or ef?

1000


Explain how you can send the result back in JSON format in MVC?

979


What is difference between html.beginform and ajax.beginform?

983


Explain tempdata in asp.net mvc?

1108


How does servicing work for the .net framework 3.0?

911


how do you truncate a table using entity data model?

1156


How we can handle the exception at controller level in ASP.Net MVC?

1082


Can you please explain the request flow in ASP.NET MVC framework?

1105


Can you explain renderbody and renderpage in mvc?

1010


The order of the filters that get executed, if the multiple filters are implemented?

1013


What are ajax helpers in asp.net mvc?

1058


What is edm designer? : Entity framework

972


What are the 2 popular asp.net mvc view engines?

1000


Mention two instances where routing is not implemented or required?

1203


What is the use of the default route {resource}.axd/{*pathinfo} ?

998