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

In Server how to check whether model has error or not in ASP.Net MVC

1132


What is net framework 3.0 ?

1102


What is the difference between windows vista and .net framework 3.0 ?

1004


Explain the advantages of dependency injection (di) in asp.net mvc?

1055


What is latest version of .net framework?

1125


List the new features added in .net framework 4.0.

951


My organization went through the approval process of supporting the .net framework 2.0 in production. Do we need to go through the same process all over again for the .net framework 3.0? Do I need to do any application compatibility testing for my .net framework 2.0 applications?

1003


What filters are executed in the end?

1042


i have done enough testing in life but now stated developing intereset in development work,Can i think of entering into development work that too in >Net after more then 4 years of testing experiece?

2212


Explain the difference between viewbag and viewdata in mvc?

970


what do you mean by table-per-type?

1098


What is the purpose of a web form?

1007


What are authentication filters in web api?

1060


Why should we go for entity framework?

1011


What symbol would you use to denote, the start of a code block in razor views?

975