PostSharp6.2/API Reference/Post­Sharp.​Aspects Namespace/IOn­Method­Boundary­Aspect Interface/IOn­Method­Boundary­Aspect Methods/IOn­Method­Boundary­Aspect.​On­Entry Method

IOnMethodBoundaryAspect.OnEntry Method

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

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 6.2.8.0 (6.2.8.0)
Syntax
C#
void OnEntry(
	MethodExecutionArgs args
)

Parameters

args
Type: PostSharp.Aspects.MethodExecutionArgs
Event arguments specifying which method is being executed, which are its arguments, and how should the execution continue after the execution of OnEntry(MethodExecutionArgs).
Remarks
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.
See Also