Integer Autobox : int Box Unbox « Data Type « C# / CSharp Tutorial






using System;

class MainClass
{
    public static void Main()
    {
        Console.WriteLine(5.ToString());
    }
}
5








2.6.int Box Unbox
2.6.1.Integer Autobox
2.6.2.Box int to object and unbox it back
2.6.3.implicit boxing from i to object