public static void Main()
Swap<int>(ref firstInt, ref secondInt);
Console.WriteLine("firstInt: " + firstInt);
Console.WriteLine("secondInt: " + secondInt);
double firstDouble = 1.5;
double secondDouble = 2.5;
Swap(ref firstDouble, ref secondDouble);
Console.WriteLine("firstDouble: " + firstDouble);
Console.WriteLine("secondDouble " + secondDouble);
public static void Swap<T>(ref T a, ref T b)