PostSharp//API Reference/Post­Sharp.​Aspects/IEvent­Level­Aspect­Build­Semantics/Compile­Time­Initialize
Open sandboxFocus

Method CompileTimeInitialize

CompileTimeInitialize(EventInfo, AspectInfo)

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

void CompileTimeInitialize(EventInfo targetEvent, AspectInfo aspectInfo)
Type Name Description
EventInfo targetEvent

Event to which the current aspect is applied

AspectInfo aspectInfo

Reserved for future usage.