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

IMethodBodyService Interface

Service that exposes the method GetMethodBody(MethodBase, MethodBodyAbstractionLevel), which allows to decompile a method and get a AST representation.

Namespace:  PostSharp.Reflection.MethodBody
Assembly:  PostSharp (in PostSharp.dll) Version: 6.10.5.0 (6.10.5.0)
Syntax
C#
public interface IMethodBodyService : IService

The IMethodBodyService type exposes the following members.

Methods
  NameDescription
Public methodGetMethodBody
Decompiles a method and gets an AST representation of it.
Remarks
See Also