[Solved] switch case statment in C# with hex values


Of course you can. “Hex Values” is merely a notation for an integral type, which is a valid case label in a C# switch block.

Excepting the follow-through nature of a switch block – which you are obviating with break statements – the order of the case labels does not matter.

solved switch case statment in C# with hex values