wliao008 / buffalo

an aspect oriented programming framework using mono cecil for the .NET platform
1 stars 0 forks source link

args.Proceed() not getting transformed in anonymous function #26

Closed wliao008 closed 11 years ago

wliao008 commented 11 years ago

If args.Proceed() is from an anonymous function CIL instruction are not getting transformed. after some investigation i realized that lambda functions compiles to a private nested class, so args.Proceed() ended up not being in the Invoke() function body anymore.

The transformation only check if args.Proceed() exists inside of Invoke(). Therefore that's the cause of the problem.