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

Method CompileTimeInitialize

CompileTimeInitialize(MethodBase, 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.

public virtual void CompileTimeInitialize(MethodBase method, AspectInfo aspectInfo)
Type Name Description
MethodBase method

Method to which the current aspect is applied

AspectInfo aspectInfo

Reserved for future usage.

IMethodLevelAspectBuildSemantics.CompileTimeInitialize(MethodBase, AspectInfo)