PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Reflection.​Method­Body Namespace / IMethod­Body Interface

IMethodBody Interface

Represents the body of a method.

Namespace:  PostSharp.Reflection.MethodBody
Assembly:  PostSharp (in PostSharp.dll) Version: 6.9.11.0 (6.9.11.0)
Syntax
C#
public interface IMethodBody : IMethodBodyElement

The IMethodBody type exposes the following members.

Properties
  NameDescription
Public propertyMethod
Gets the method whose body is represented by the current object.
Public propertyMethodBodyElementKind
Gets the kind of syntax element.
(Inherited from IMethodBodyElement.)
Public propertyParentElement
Gets the parent element in the tree.
(Inherited from IMethodBodyElement.)
Public propertyParentMethodBody
Gets the parent method body.
(Inherited from IMethodBodyElement.)
Public propertyRootBlock
Gets the root instruction block of the method.
See Also