Switch case in C# – a constant value is expected

See
C# switch statement limitations – why?

Basically Switches cannot have evaluated statements in the case statement. They must be statically evaluated.

Leave a Comment