PostSharpAPI ReferencePost­Sharp.​AspectsIOn­Method­Boundary­AspectOn­Entry
Open sandboxFocus

IOnMethodBoundaryAspect.OnEntry Method


Method executed before the body of methods to which this aspect is applied.

void OnEntry(MethodExecutionArgs args)
Type Name Description
MethodExecutionArgs args

Event arguments specifying which method is being executed, which are its arguments, and how should the execution continue after the execution of OnEntry(MethodExecutionArgs).


If the aspect is applied to a constructor, the current method is invoked after the this pointer has been initialized, that is, after the base constructor has been called.