Here is a correction to the CilWorker class: the code must accept the OpCodes.Ldc_I4_S opcode!
public Instruction Create (OpCode opcode, int i)
{
...
if (opcode.OperandType != OperandType.InlineI &&
>>> opcode.OperandType !=
OperandType.ShortInlineI) <<< !! to be
addedd !!
throw new ArgumentException ("opcode");
...
}
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---
