using System;

class Program
{
    static void Swap(ref int a, ref int b)
    {
        int temp = a;
        a = b;
        b = temp;
    }

    static void Main(string[] args)
    {
        int x = 10;
        int y = 20;

        Console.WriteLine("调用Swap函数前:");
        Console.WriteLine("x = " + x);
        Console.WriteLine("y = " + y);

        Swap(ref x, ref y);

        Console.WriteLine("调用Swap函数后:");
        Console.WriteLine("x = " + x);
        Console.WriteLine("y = " + y);
    }
}