Finds in the current domain the MethodDefDeclaration corresponding to the current method.

Namespace:  PostSharp.CodeModel
Assembly:  PostSharp.Core (in PostSharp.Core.dll)

Syntax

Visual Basic (Declaration)
Function GetMethodDefinition As MethodDefDeclaration
C#
MethodDefDeclaration GetMethodDefinition()
Visual C++
MethodDefDeclaration^ GetMethodDefinition()

Return Value

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

See Also