PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Method­Spec­Declaration Class / Method­Spec­Declaration Properties / Method­Spec­Declaration.​Parent­Member Property

MethodSpecDeclaration.ParentMember Property

Gets the parent member 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)
Syntax
C#
public override IMember ParentMember { get; }

Property Value

Type: IMember
The parent member if the current declaration is a parameter, the current member if the current declaration is a member, otherwise null.

Implements

IMetadataDeclaration.ParentMember
IMetadataDeclaration.ParentMember
See Also