wliao008 / buffalo

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

Annotated functions unable to access variables outside the aspect point #7

Closed wliao008 closed 11 years ago

wliao008 commented 11 years ago

For example if I have an aspect:

public class Trace : MethodBoundAspect
{
    Random r = new Random((int)DateTime.Now.Ticks);
    public override void Before(...) { ... }
}

Annotated function unable to access the random object since it's declared outside of Before().