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 14 Expressionsprevious at this levelnext at this level 14.5 Primary expressions Paragraph 11 Primary expressions include the simplest forms of expressions. primary-expression : array-creation-expression primary-no-array-creation-expression primary-no-array-creation-expression : literal simple-name parenthesized-expression member-access invocation-expression element-access this-access base-access post-increment-expression post-decrement-expression object-creation-expression delegate-creation-expression typeof-expression sizeof-expression checked-expression unchecked-expression Paragraph 21 Primary expressions are divided between array-creation-expressions and primary-no-array-creation-expressions. 2 Treating array-creation-expression in this way, rather than listing it along with the other simple expression forms, enables the grammar to disallow potentially confusing code such as
object o = new int[3][1];  
which would otherwise be interpreted as
object o = (new int[3])[1];  
{ JSL }
Jagger Software Ltd
Company # 4070126
VAT # 762 5213 42
Valid HTML 4.01Valid CSS