Autobox and unbox long value : long box unbox « Data Type « C# / CSharp Tutorial






using System;

class MainClass
{
    static void Main(string[] args)
    {
        long MyLong = 10051234;
        object MyObject = MyLong;
        long MyLong2 = (long)MyObject;
    }
}








2.12.long box unbox
2.12.1.To specify a long type, use either the l or L suffix. For example:
2.12.2.Autobox and unbox long value