public static void Main()
    {
        int x;

        x = 10;
        Console.WriteLine("Значение x равно: " + x);
        // Переменная x автоматически приводится
        // к объектному типу при передаче методу sqr().
        x = BoxingDemo.sqr(x);
        Console.WriteLine("Значение x в квадрате равно: " + x);
    }
    static void Main()
    {
        int x;

        x = 10;

        Console.WriteLine("Here is x: " + x);

        // x is automatically boxed when passed to Sqr().
        x = BoxingDemo.Sqr(x);

        Console.WriteLine("Here is x squared: " + x);
    }