To specify a long type, use either the l or L suffix. For example: : long box unbox « Data Type « C# / CSharp Tutorial






using System;

public class MainClass{
    public static void Main() {
        long lVal = 0x7FFFFFL;            // Long value specified as hex constant
        Console.WriteLine(lVal);

    }
}








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