Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The 'l' suffix is easily confused with the digit '1' -- use 'L' for clarity
The compiler warns when it detects a long literal using a lowercase l instead of an uppercase L.
The following sample generates CS0078:
class Program
{
public static void TestL(long i)
{
}
public static void Main()
{
TestL(25l); // CS0078
// try the following line instead
// TestL(25L);
}
}
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.