ECMA-334 C# Language Specification

14.1: Expression classifications

An expression is classified as one of the following:

The final result of an expression is never a namespace, type, method group, or event access. Rather, as noted above, these categories of expressions are intermediate constructs that are only permitted in certain contexts.

A property access or indexer access is always reclassified as a value by performing an invocation of the get-accessor or the set-accessor. The particular accessor is determined by the context of the property or indexer access: If the access is the target of an assignment, the set-accessor is invoked to assign a new value (14.13.1). Otherwise, the get-accessor is invoked to obtain the current value (14.1.1).

In This Section: