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)
C#
public IMethod GetInitializeAspectsProtectedMethod( TypeDefDeclaration typeDef )
Parameters
- typeDef
- Type: PostSharp.Sdk.CodeModel.TypeDefDeclaration
The type for which the InitializeAspects method should be returned.
Return Value
Type: IMethodThe 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).