IMethodBodyService.GetMethodBody Method |
Decompiles a method and gets an AST representation of it.
Namespace: PostSharp.Reflection.MethodBody
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
IMethodBody GetMethodBody( MethodBase method, MethodBodyAbstractionLevel abstractionLevel )
Parameters
- method
- Type: System.Reflection.MethodBase
The method to decompile. - abstractionLevel
- Type: PostSharp.Reflection.MethodBody.MethodBodyAbstractionLevel
The required level of abstraction and detail.
Return Value
Type: IMethodBodyAST representing the method at the required level of abstraction and detail.