PostSharp6.1/API Reference/Post­Sharp.​Aspects Namespace/Event­Level­Aspect Class/Event­Level­Aspect Methods/Event­Level­Aspect.​Compile­Time­Initialize Method

EventLevelAspect.CompileTimeInitialize Method

Method invoked at build time to initialize the instance fields of the current aspect. This method is invoked before any other build-time method.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 6.1.23.0 (6.1.23.0)
Syntax
C#
public virtual void CompileTimeInitialize(
	EventInfo targetEvent,
	AspectInfo aspectInfo
)

Parameters

targetEvent
Type: System.Reflection.EventInfo
Event to which the current aspect is applied
aspectInfo
Type: PostSharp.Aspects.AspectInfo
Reserved for future usage.

Implements

IEventLevelAspectBuildSemantics.CompileTimeInitialize(EventInfo, AspectInfo)
See Also