what is read only and constant

Answer Posted / rafi

if we use constantat first only value should be assigned
where as
in readonly the value can be assigned any time but it
should not be modified

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a Assembly?

618


In .NET how can you solve the DLL Hell problem?

738


Is c# lazy thread safe?

571


What is array and types of array in c#?

565


What is enumerable in c#?

561






Why is c# better than java?

575


Tell me the difference between call by value and call by reference.

614


List down the access modifiers available in c#?

568


What are the types of delegates in c#?

547


What is the difference between Decorator and Adapter pattern?

610


Is c# used for frontend or backend?

702


windows c# using datagridview in edit form sql server

3689


What is difference between dictionary and hashtable in c#?

510


What is the difference between static and private constructor in c#?

551


How to assign Null value to Var?

631