PostSharp 6.10 / / 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: (
public interface IMethodBody : IMethodBodyElement

The IMethodBody type exposes the following members.

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