But I guess what really happened is that when you come up writing assembly code at a low level it's a lot more obvious when you've been neck deep in bits, shifts, and logic ops all day.
(a, b) = (b, a);I'm a total .NET noob, but this attempt in Compiler Explorer shows it not using the xor trick.
https://godbolt.org/z/jhzqxEKzT
Maybe I need some extra compiler flags or something.