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

MethodSpecDeclaration.GetMethodDefinition Method

Finds in the current domain the MethodDefDeclaration corresponding to the current method with default BindingOptions.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public MethodDefDeclaration GetMethodDefinition()

Return Value

Type: MethodDefDeclaration
The MethodDefDeclaration corresponding to the current instance in the current domain.

Implements

IMethod.GetMethodDefinition()
See Also