> Debugging the alogithm I cannot see when I lose the type references,
> so I hope that someone could shed me some light in this question. I am
> a newbie at IL level and Mono.Cecil, so I apologize if the mistake I
> will be making for sure is very silly.

First of all, make sure you're using Cecil from master. Then this kind
of error usually happens when you pass references across module
boundaries, which is not possible. This means that you can't take a
method body, and copy it into another another method body which lives
in another module. You have to modify the method body so that each
references are created in the proper module, using the different
Import methods.

Jb

-- 
--
mono-cecil

Reply via email to