Thanks for the quick reply.

On Jul 8, 2:09 am, Jb Evain <[email protected]> wrote:
> Hey,
>
> On Thu, Jul 8, 2010 at 4:02 AM, mclagett <[email protected]> wrote:
> > Like, for example, the SetILFunctionBody method of ICorProfilerInfo
> > does?  I am implementing an IL compiler/assembler that parses high
> > level source code and generates IL bits from it as well as parsing
> > MSIL assembly language source code and generating IL bits from that.
> > Is there any facility in cecil to take a bunch of IL and install it as
> > the method body of a method in one call?
>
> Nope, Cecil doesn't expose anything like that. Considering the way Cecil 
> works:
>
> * It would only work for simple method bodies without any reference to
> any metadata element. The tokens are computed at write time, so what
> would you pass as an operand to call for instance?
> * It would require that we can also set exception handlers using a raw form.
>
> --
> Jb Evain  <[email protected]>

-- 
--
mono-cecil

Reply via email to