Hi,

Can I get the Variables from the new method body with out actually
saving it or adding it to the target assembly.

The steps i did to clone the method is

1.Add parameters
2.Add Variables
3.Add Exception Handlers(this have some issues too)
4.Add Instructions

Sequentially ...



csk

On May 19, 3:02 pm, Jb Evain <[email protected]> wrote:
> Hi,
>
> On Thu, May 19, 2011 at 11:49 AM, srcKode <[email protected]> wrote:
> >            srcIns = Instruction.Create(ins.OpCode,
> > ((VariableDefinition)ins.Operand));
>
> Then this is incorrect. You have to get the VariableDefinition from
> the new method body, not from the cloned method body.
>
> Jb

-- 
--
mono-cecil

Reply via email to