How to stop C#'s switch statement from generating the CIL switch instruction
Posted
by qochismo
on Stack Overflow
See other posts from Stack Overflow
or by qochismo
Published on 2009-04-18T10:28:07Z
Indexed on
2010/06/07
5:12 UTC
Read the original article
Hit count: 345
C#'s switch statement can compile to a CIL switch instruction, or if/else's, depending on the cases in the statement as mentioned here. Is there a way to force the compiler to always generate the if/else variant in a block of code?
© Stack Overflow or respective owner