Method Swap
Swap<T>(ref T, ref T)
a becomes b and b becomes a
Declaration
public static void Swap<T>(ref T a, ref T b)
Parameters
Type | Name | Description |
---|---|---|
T | a | Value a |
T | b | Value b |
Type Parameters
Name | Description |
---|---|
T | The type of the values to swap |