Hi Simon,

On Fri, Dec 17, 2010 at 9:46 AM, Simon Cropp <[email protected]> wrote:
> Do I need to do the same with Cecil or is there an easier way?

Sadly, there's no «easy way». Lambda expressions/Anonymous delegates
are just syntactic sugar. IL wise, they're compiled to a combination
of a delegate instance creation, and of a generated type which
represents the state that the lambda closes on. That and sometimes a
cache for the delegate instance.

All in all, the concept of a lambda expression is at a much higher
level of abstraction than where Cecil operates.

Jb

-- 
--
mono-cecil

Reply via email to