Jon Jagger
jon@jaggersoft.com
Table of Contents 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Notes DownloadECMA-334 C# Language Specificationpreviousnextprevious at this levelnext at this level 17 Classesprevious at this levelnext at this level 17.4 Fieldsprevious at this levelnext at this level 17.4.2 Readonly fields Paragraph 11 When a field-declaration includes a readonly modifier, the fields introduced by the declaration are readonly fields. 2 Direct assignments to readonly fields can only occur as part of that declaration or in an instance constructor or static constructor in the same class. 3 (A readonly field can be assigned to multiple times in these contexts.) 4 Specifically, direct assignments to a readonly field are permitted only in the following contexts: Paragraph 21 Attempting to assign to a readonly field or pass it as an out or ref parameter in any other context is a compile-time error.
{ JSL }
Jagger Software Ltd
Company # 4070126
VAT # 762 5213 42
Valid HTML 4.01Valid CSS