Method Swap Swap<T>(ref T, ref T) Swaps two values. Declaration public static void Swap<T>(ref T a, ref T b) Parameters Type Name Description T a First value. T b Second value. Type Parameters Name Description T Type of the values