RosettaCodeData/Task/Generic-swap/C-sharp/generic-swap-1.cs
2023-07-01 13:44:08 -04:00

6 lines
83 B
C#

static void Swap<T>(ref T a, ref T b)
{
T temp = a;
a = b;
b = temp;
}