My compiler for SABLE would create an array containing "a" and "b" in the static initializer. At the switch statement, it would look up the index of someString in that array, using -1 if it isn't there. That index, which here is -1, 0, or 1, is pushed on the stack before the switch opcode. --~--~---------~--~----~------------~-------~--~----~ -- mono-cecil -~----------~----~----~----~------~----~------~--~---
- [mono-cecil] OpCodes.Switch statement example in Cecil? Philip_L
- [mono-cecil] Re: OpCodes.Switch statement example in Ce... Jb Evain
- [mono-cecil] Re: OpCodes.Switch statement example i... Philip_L
- [mono-cecil] Re: OpCodes.Switch statement examp... Keith
- [mono-cecil] Re: OpCodes.Switch statement e... Lotfi Gheribi
- [mono-cecil] Re: OpCodes.Switch statement examp... Jb Evain
- [mono-cecil] Re: OpCodes.Switch statement e... Philip_L
- [mono-cecil] Re: OpCodes.Switch statem... Lotfi Gheribi
- [mono-cecil] Re: OpCodes.Switch statem... Jb Evain
