Sorry for this post: I tried to delete the message but unsuccessfully.
Indeed your suggested solution is the best thing to do in that case!

On 16 jan, 18:27, "Jb Evain" <[EMAIL PROTECTED]> wrote:
> Hey,
>
> On 1/16/08, Regis <[EMAIL PROTECTED]> wrote:
>
> > 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");
>
> >                         ...
> >                 }
>
> You have to use the (OpCode,byte) overload for that ldc.i4.s.
>
> --
> Jb Evain  <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---

Reply via email to