See
C# switch statement limitations – why?
Basically Switches cannot have evaluated statements in the case statement. They must be statically evaluated.
See
C# switch statement limitations – why?
Basically Switches cannot have evaluated statements in the case statement. They must be statically evaluated.