I know that || and && are defined as short-circuit operators in C#, and such behaviour is guaranteed by the language specification, but do
||
&&
but do |= and &= short-circuit too?
|=
&=
No. &= and |= are the equivalents of the operations & and |, not of the short-circuited logical operators.
&
|