PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Infrastructure Namespace / Method­Body­Transformation­Redirection Class / Method­Body­Transformation­Redirection Constructor / Method­Body­Transformation­Redirection Constructor (Instruction­Block, Instruction­Sequence)

MethodBodyTransformationRedirection Constructor (InstructionBlock, InstructionSequence)

Initializes a new MethodBodyTransformationRedirection by specifying an InstructionBlock, typically in the current method body.

Namespace:  PostSharp.Sdk.AspectInfrastructure
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public MethodBodyTransformationRedirection(
	InstructionBlock instructionBlock,
	InstructionSequence leaveBranchTarget
)

Parameters

instructionBlock
Type: PostSharp.Sdk.CodeModel.InstructionBlock
The InstructionBlock in which the next transformation should emit its instruction, or null if the instruction block is unchanged.
leaveBranchTarget
Type: PostSharp.Sdk.CodeModel.InstructionSequence
The InstructionSequence to which the next transformation should branch the instruction flow when exiting, instead of emitting the ret instruction.
See Also