PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Reflection.​Syntax Namespace / ISyntax­Method­Body Interface
ISyntaxMethodBody Interface
Represents the body of a method.

Namespace: PostSharp.Reflection.Syntax
Assembly: PostSharp (in PostSharp.dll) Version: (
public interface ISyntaxMethodBody : ISyntaxElement

The ISyntaxMethodBody type exposes the following members.

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