PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Weaver Namespace / Advice­Analyzer Class / Advice­Analyzer Methods / Advice­Analyzer.​Initialize Method / Advice­Analyzer.​Initialize Method (Module­Declaration, IMethod, Serialization­Type)

AdviceAnalyzer.Initialize Method (ModuleDeclaration, IMethod, SerializationType)

Initializes the current AdviceAnalyzer. This method must be invoked by implementations of Initialize(ModuleDeclaration).

Namespace:  PostSharp.Sdk.AspectWeaver
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
protected void Initialize(
	ModuleDeclaration module,
	IMethod optimizationAttributeConstructor,
	SerializationType optimizationSerializationType
)

Parameters

module
Type: PostSharp.Sdk.CodeModel.ModuleDeclaration
Module in which advices have to be initialized.
optimizationAttributeConstructor
Type: PostSharp.Sdk.CodeModel.IMethod
Constructor of the specific custom attribute derived from AdviceOptimizationAttribute.
optimizationSerializationType
Type: PostSharp.Sdk.CodeModel.SerializationType
Serialization type of the first parameter of optimizationAttributeConstructor.
See Also