public static void Main()
SwapValue<int>(ref x, ref y);
Console.WriteLine("x={0}, y={1}",x,y);
static void SwapValue<T>(ref T x, ref T y) where T : struct
Console.WriteLine("Generic method used.");
static void SwapValue(ref int x, ref int y)
Console.WriteLine("Non generic method used");