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 9 Lexical structureprevious at this levelnext at this level 9.5 Pre-processing directivesprevious at this levelnext at this level 9.5.2 Pre-processing expressions Paragraph 11 Pre-processing expressions can occur in #if and #elif directives. 2 The operators !, ==, !=, && and || are permitted in pre-processing expressions, and parentheses may be used for grouping. pp-expression :: whitespaceopt pp-or-expression whitespaceopt pp-or-expression :: pp-and-expression pp-or-expression whitespaceopt || whitespaceopt pp-and-expression pp-and-expression :: pp-equality-expression pp-and-expression whitespaceopt && whitespaceopt pp-equality-expression pp-equality-expression :: pp-unary-expression pp-equality-expression whitespaceopt == whitespaceopt pp-unary-expression pp-equality-expression whitespaceopt != whitespaceopt pp-unary-expression pp-unary-expression :: pp-primary-expression ! whitespaceopt pp-unary-expression pp-primary-expression :: true false conditional-symbol ( whitespaceopt pp-expression whitespaceopt ) Paragraph 21 When referenced in a pre-processing expression, a defined conditional compilation symbol has the boolean value true, and an undefined conditional compilation symbol has the boolean value false. Paragraph 31 Evaluation of a pre-processing expression always yields a boolean value. 2 The rules of evaluation for a pre-processing expression are the same as those for a constant expression (§14.15), except that the only user-defined entities that can be referenced are conditional compilation symbols.
{ JSL }
Jagger Software Ltd
Company # 4070126
VAT # 762 5213 42
Valid HTML 4.01Valid CSS