So i'm trying to create a small method for one of my applications through mono.cecil. I'm not good enough in IL to write it purely from my mind so I code the method first in C# use ILDasm to get the IL code and then work from there. And in ILDasm's output the opcode "Ldc.i4.s" is used with the operand 124, and I later read up on the internet that this opcode should be used for pushing integers ranging from -127 to 127.
But no matter what I cast the operand it doesn't help, it always gives me an "opcode" ArgumentException when trying to emit the instruction. What should I do? Thanks, UbbeLoL -- -- mono-cecil
