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