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

MethodLevelAspect.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: 5.0.38.0 (5.0.38.0)
Syntax
C#
public virtual void CompileTimeInitialize(
	MethodBase method,
	AspectInfo aspectInfo
)

Parameters

method
Type: System.Reflection.MethodBase
Method to which the current aspect is applied
aspectInfo
Type: PostSharp.Aspects.AspectInfo
Reserved for future usage.

Implements

IMethodLevelAspectBuildSemantics.CompileTimeInitialize(MethodBase, AspectInfo)
See Also