public class Program
{
public static void Main()
int nonConstValue = 123;
const int aConstValue = 456;
int a = 5;
if( a is aConstValue ){}//OK `aConstValue` is const
if( a is nonConstValue ){}//ERROR: constant value is expected
}