Last active
December 31, 2015 20:08
-
-
Save kuchikios/81216c6685df457bb84a to your computer and use it in GitHub Desktop.
Swap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Swap<TValue>( ref TValue a, ref TValue b ) | |
{ | |
var c = a; a = b; b = c; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment