Hey,

On Sat, May 14, 2011 at 4:14 PM, Gábor Kozár <[email protected]> wrote:
> I was wondering, if it's possible to force Cecil to compute the instruction
> offsets?

                public static void ComputeOffsets (this MethodBody body)
                {
                        var offset = 0;
                        foreach (var instruction in body.Instructions) {
                                instruction.Offset = offset;
                                offset += instruction.GetSize ();
                        }
                }

Jb

-- 
--
mono-cecil

Reply via email to