Short circuit on |= and &= assignment operators in C#
The C# specification guarantees that both sides are evaluated exactly once from left-to-right and that no short-circuiting occurs. 5.3.3.21 General rules for expressions with embedded expressions The following rules apply to these kinds of expressions: parenthesized expressions (§7.6.3), element access expressions (§7.6.6), base access expressions with indexing (§7.6.8), increment and decrement expressions (§7.6.9, §7.7.5), cast … Read more