PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Weaver Namespace / Method­Body­Restructure­Options Enumeration

MethodBodyRestructureOptions Enumeration

[Missing <summary> documentation for "T:PostSharp.Sdk.CodeWeaver.MethodBodyRestructureOptions"]

Namespace:  PostSharp.Sdk.CodeWeaver
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
[FlagsAttribute]
public enum MethodBodyRestructureOptions
Members
  Member nameValueDescription
None0
ChangeReturnInstructions1 Change ret instructions into branching instructions that jump to ReturnBranchTarget.
UseLeave2
CreateEntryBlock4 Create an entry block before the PrincipalBlock.
CreateLeaveBlock8 Create a leave block after the PrincipalBlock and add ReturnBranchTarget with return instructions to it.
CreateNextBlock16 Nest the PrincipalBlock into the NextBlock.
See Also