Amit Singh
Posted Date
4/28/2011
|
The readonly keyword is a modifier that you can use on fields. When a field declaration includes a readonly
modifier, assignments to the fields introduced by the declaration can
only occur as part of the declaration or in a constructor in the same
class.
for example: public readonly int y = 5;
|
|