PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Instruction­Block Class / Instruction­Block Methods / Instruction­Block.​Move­Instruction­Sequence Method

InstructionBlock.MoveInstructionSequence Method

Adds an InstructionSequence after a given sequence in the current the block.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public void MoveInstructionSequence(
	InstructionSequence newSequence,
	NodePosition position,
	InstructionSequence referenceSequence
)

Parameters

newSequence
Type: PostSharp.Sdk.CodeModel.InstructionSequence
A detached InstructionSequence.
position
Type: NodePosition
Position of the new InstructionSequence w.r.t. referenceSequence.
referenceSequence
Type: PostSharp.Sdk.CodeModel.InstructionSequence
Sequence before or after which newSequence has to be inserted, or null if newSequencehas to be the first or the last.
See Also