ISyntaxReflectionService.GetMethodBody Method |
Decompiles a method and gets an AST representation of it.
Namespace: PostSharp.Reflection.SyntaxAssembly: PostSharp (in PostSharp.dll) Version: 4.3.48.0 (4.3.48.0)

C#
ISyntaxMethodBody GetMethodBody( MethodBase method, SyntaxAbstractionLevel abstractionLevel )
Parameters
- method
- Type: System.Reflection.MethodBase
The method to decompile. - abstractionLevel
- Type: PostSharp.Reflection.Syntax.SyntaxAbstractionLevel
The required level of abstraction and detail.
Return Value
Type: ISyntaxMethodBodyAST representing the method at the required level of abstraction and detail.
