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 expressionsprevious at this levelnext at this level 14.5.6 Element accessprevious at this levelnext at this level 14.5.6.2 Indexer access Paragraph 11 For an indexer access, the primary-no-array-creation-expression of the element-accessmust be a variable or value of a class, struct, or interface type, and this type must implement one or more indexers that are applicable with respect to the expression-list of the element-access. Paragraph 21 The compile-time processing of an indexer access of the form P[A], where P is a primary-no-array-creation-expression of a class, struct, or interface type T, and A is an expression-list, consists of the following steps: Paragraph 31 Depending on the context in which it is used, an indexer access causes invocation of either the get-accessor or the set-accessor of the indexer. 2 If the indexer access is the target of an assignment, the set-accessor is invoked to assign a new value (§14.13.1). 3 In all other cases, the get-accessor is invoked to obtain the current value (§14.1.1).
{ JSL }
Jagger Software Ltd
Company # 4070126
VAT # 762 5213 42
Valid HTML 4.01Valid CSS