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

3 lines
73 B
C#

int a = 1;
int b = 2;
Swap(ref a, ref b); // Type parameter is inferred.