Hey Alex, Have you updated recently ? That looks like something that I fixed in e6e1689caaaafb971935711065dee0c6b874d8bf.
If you're not up to date, please update and test, otherwise, yes, I'd like to have an assembly to reproduce. Thanks! On Sat, Apr 24, 2010 at 5:11 PM, Buryak Alexander <buryak.alexan...@gmail.com> wrote: > Good day. > > I have another problem with Cecil - it generates broken code. > > Example... > Source code: http://www.everfall.com/paste/id.php?odh4x6hvisyk > Original IL generated by MS C# 3.5 SP1 compiler: > http://www.everfall.com/paste/id.php?xryv75qqr41a > Opened and saved IL by Cecil (no explicit changes made): > http://www.everfall.com/paste/id.php?smwthuz4ds0j > > Generated code execution fails in runtime with error > "System.InvalidProgramException: Common Language Runtime detected an > invalid program." > > If you need compiling sample code, tell me - I'll provide you one. > > Thanks in advance. > > WBR > Alex > > -- > -- > mono-cecil > > Subscription settings: > http://groups.google.com/group/mono-cecil/subscribe?hl=en > -- Jb Evain <j...@nurv.fr> -- -- mono-cecil