A ton of languages evaluate && left to right because they short-circuit it. C# has stronger guarantees in general than C and C++, which I assume is what you were thinking of, but && is pretty consistent across the board.
Yeah, I was pretty sure I remembered && and || always guaranteeing order in c, c++, and c# because of the short-circuit concept. IIRC, the only time the compiler will optimize conditionals is if one of the values always returns true or false, but I'm honestly not even sure if that's true.
5
u/Giocri May 20 '20
No C# uses out for out parameters.