PostSharp / / API Reference / Post­Sharp.​Reflection.​Method­Body / IMethod­Body­Service
Open sandbox

Interface IMethodBodyService

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.dll
public interface IMethodBodyService : IService


Name Description
GetMethodBody(MethodBase, MethodBodyAbstractionLevel)

Decompiles a method and gets an AST representation of it.