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

MethodDefDeclaration.GetParentDefinition Method

When the current method overrides a method in a parent type, returns the overridden method.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: (
public MethodDefDeclaration GetParentDefinition()

Return Value

Type: MethodDefDeclaration
The overridden method, or nullif the current method does not override any method.
See Also