PostSharpAPI ReferencePost­Sharp.​Reflection.​Method­BodyIMethod­Body­Service
Open sandboxFocus

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

Methods

Name Description
GetMethodBody(MethodBase, MethodBodyAbstractionLevel)

Decompiles a method and gets an AST representation of it.