I have following declaration in my class.
public class MyClass
{
private const long SOME_VALUE= (10 * 1024 * 1024 * 1024); // 10 GB
....
}
However compiler is reporting following error
error CS0220: The operation overflows at compile time in checked mode
According to MSDN.
As far as I can tell, SOME_VALUE is in this range for long type. Any thoughts on why am I getting this compile time error?
