PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Custom­Attribute­Declaration Class / Custom­Attribute­Declaration Properties / Custom­Attribute­Declaration.​Parent­Type Property

CustomAttributeDeclaration.ParentType Property

Gets the parent type of the current declaration.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public override IType ParentType { get; }

Property Value

Type: IType
The declaring type if the current declaration is a member or a parameter, the current type if the current declaration is a type, otherwise null.

Implements

IMetadataDeclaration.ParentType
IMetadataDeclaration.ParentType
See Also