I still wonder why I can’t use the switch-statement on typeof in C#?! Finally, I found Peter Hallam answering to this. Irrespectively his arguments, it works for the try-catch-finally statement quite well. So why not for switch?!
I still wonder why I can’t use the switch-statement on typeof in C#?! Finally, I found Peter Hallam answering to this. Irrespectively his arguments, it works for the try-catch-finally statement quite well. So why not for switch?!