PostSharp SDK 6.9 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / IMetadata­Declaration Interface / IMetadata­Declaration Properties / IMetadata­Declaration.​Parent­Type Property

IMetadataDeclaration.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.9.1.0 (6.9.1.0)
Syntax
C#
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.
See Also