Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error CS1021
Collapse the table of content
Expand the table of content

Compiler Error CS1021

Integral constant is too large

A value assigned to an integral type is larger than the largest possible unsigned integer value.

The following sample generates CS1021:

// CS1021.cs
enum F : int
{
   a=(int)2590000000000000000000   // CS1021
}

public class clx
{
   public static void Main()
   {
   }
}

Community Additions

ADD
Show:
© 2015 Microsoft