NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

7.5.6 Element access

An element-access consists of a primary-expression, followed by a "[" token, followed by an expression-list, followed by a "]" token. The expression-list consists of one or more expressions, separated by commas.

element-access:
primary-expression [ expression-list ]
expression-list:
expression
expression-list
, expression

If the primary-expression of an element-access is a value of an array-type, the element-access is an array access (§7.5.6.1). Otherwise, the primary-expression must be a variable or value of a class, struct, or interface type that has one or more indexer members, and the element-access is then an indexer access (§7.5.6.2).