public enum sEnum
{
zero = 0, one = 1
}
public int x;
public static void a(sEnum s)
{
x = 3;
if (s == sEnum.one) ...
}
Why can the values ββof this enum be checked here since the static keyword is not used? Where is this specified in the language specification?
source
share