PostSharp6.6//API Reference/Post­Sharp.​Aspects Namespace/IEvent­Level­Aspect­Build­Semantics Interface/IEvent­Level­Aspect­Build­Semantics Methods/IEvent­Level­Aspect­Build­Semantics.​Compile­Time­Initialize Method

IEventLevelAspectBuildSemantics.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.6.7.0 (6.6.7.0)
Syntax
C#
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.
See Also