PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Infrastructure Namespace / Type­Initialization­Manager Class / Type­Initialization­Manager Methods / Type­Initialization­Manager.​Get­Initialize­Aspects­Protected­Method Method

TypeInitializationManager.GetInitializeAspectsProtectedMethod Method

Gets the generated InitializeAspects protected method for a given type.

Namespace:  PostSharp.Sdk.AspectInfrastructure
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
public IMethod GetInitializeAspectsProtectedMethod(
	TypeDefDeclaration typeDef


Type: PostSharp.Sdk.CodeModel.TypeDefDeclaration
The type for which the InitializeAspects method should be returned.

Return Value

Type: IMethod
The InitializeAspects protected method for type typeDef, or null if this method does not exist for this type (which would mean that this type required no aspect initialization).
See Also