Thursday, October 2, 2008
Mark a C# class data member as readonly when it’s read only
2009.01.30 - Updated in order to clarify about immutability.
The readonly modifier is used to declare an instance-specific constant data member which can be initialized in the class constructor and is not limited to compiler-time constants only.
The readonly modifier is used to declare an instance-specific constant data member which can be initialized in the class constructor and is not limited to compiler-time constants only.
Tag:C# | 0
comments
Subscribe to:
Posts
(Atom)
Tags
- android (1)
- appengine (1)
- asp.net (1)
- C# (6)
- codecharge studio (1)
- development (1)
- dojo/dijit (1)
- java (2)
- javascript (1)
- learning (1)
- PHP (3)
- RSS/Atom (1)
- sso (1)
- vs.net (1)
- webdesign (1)
- windowsmobile (1)
- WinForms (1)
Blog Archive
Powered by Blogger.