MetadataDeclaration.ParentType Property |
Gets the parent type of the current declaration.
Namespace: PostSharp.Sdk.CodeModel
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public abstract IType ParentType { get; }
Property Value
Type: ITypeThe declaring type if the current declaration is a member or a parameter, the current type if the current declaration is a type, otherwise null.