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.11 Conditional logical operators Paragraph 11 The && and || operators are called the conditional logical operators. 2 They are also called the "short-circuiting" logical operators. conditional-and-expression : inclusive-or-expression conditional-and-expression && inclusive-or-expression conditional-or-expression : conditional-and-expression conditional-or-expression || conditional-and-expression Paragraph 21 The && and || operators are conditional versions of the & and | operators: Paragraph 31 An operation of the form x && y or x || y is processed by applying overload resolution (§14.2.4) as if the operation was written x & y or x | y. 2 Then, Paragraph 41 It is not possible to directly overload the conditional logical operators. 2 However, because the conditional logical operators are evaluated in terms of the regular logical operators, overloads of the regular logical operators are, with certain restrictions, also considered overloads of the conditional logical operators. 3 This is described further in §14.11.2.
{ JSL }
Jagger Software Ltd
Company # 4070126
VAT # 762 5213 42
Valid HTML 4.01Valid CSS