PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Method­Def­Declaration Class / Method­Def­Declaration Methods / Method­Def­Declaration.​Find­Parent­Method­Group Method

MethodDefDeclaration.FindParentMethodGroup Method

Finds the parent PropertyDeclaration or EventDeclaration of the current method.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: (
public MethodGroupDeclaration FindParentMethodGroup()

Return Value

Type: MethodGroupDeclaration
The PropertyDeclaration or EventDeclaration whose the current method is an accessor, or null if the current method is not a property or event accessor.
See Also