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 / j_baghla

Both are used for constant values but in readonly variable
we can assign the value thru expression but we can't assign
value to constant variable thru expression.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell us the difference between managed and unmanaged code?

1020


Do you know what is garbage collector?

1019


I have a problem in installing visual Studio 2008 on PC that have Celeron Processor ? afterAll InstallionFaied . Pls suggest me . Is it possible or not .if Yes then How ?

2009


What is a windows process in .net?

1065


Explain the difference between managed and unmanaged code?

916


What is the difference between encrypting a password and applying a hashing?

1161


Explain attributes in dot net?

1051


State the various features present in .NET?

1054


What is the use of immutability?

1103


  • Accomm
  • i have this code.now on server side i want to compare this id(Accommodation) value and want id i.e.Accommodation.visible=true;

    1816


    Is it true that objects don't always get destroyed immediately when the last reference goes away?

    1010


    How can you instantiate a tuple?

    1009


    Explain what rare the types of jit and what is econo-jit?

    1050


    Is .net core stable?

    911


    Explain why do we use msmq?

    1001