October 2008
Intermediate to advanced
784 pages
18h 11m
English
An expression is a sequence of operators and operands. This chapter defines the syntax, order of evaluation of operands and operators, and meaning of expressions.
An expression is classified as one of the following:
• A value. Every value has an associated type.
• A variable. Every variable has an associated type—namely, the declared type of the variable.
• A namespace. An expression with this classification can appear only as the left-hand side member-access (§7.5.4) or as an operand for the as operator (§7.9.11), the is operator (§7.9.10), or the typeof operator (§7.5.11). In any other context, an expression classified as a type causes a compile-time error.
Read now
Unlock full access