PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Weaver Namespace / IMethod­Body­Restructure­Result Interface

IMethodBodyRestructureResult Interface

Interface that allows you to read output from a restructuring. (The interface is always implemented by a restructurer, because all restructurers function as their own results. One restructurer can thus only be used once.)

Namespace:  PostSharp.Sdk.CodeWeaver
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public interface IMethodBodyRestructureResult

The IMethodBodyRestructureResult type exposes the following members.

Properties
  NameDescription
Public propertyEntryBlock
Gets the entry block.
Public propertyNextBlock
Public propertyPrincipalBlock
Gets the block containing the original code. In case of a constructor, it's the code after the object has been initialized.
Public propertyReturnBranchTarget
Gets the InstructionSequence containing the ret instruction.
Public propertyReturnValueVariable
Gets the variable containing the return value in the exit block.
Public propertySuccess
Returns true if we can proceed. If false, the restructurer probably emitted an error message. In any case, the pipeline should be aborted.
See Also