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

InstructionBlock.MoveInstructionBlock Method

Moves an InstructionBlock from another block into the current one.

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 MoveInstructionBlock(
	InstructionBlock movedBlock,
	NodePosition position,
	InstructionBlock referenceBlock
)

Parameters

movedBlock
Type: PostSharp.Sdk.CodeModel.InstructionBlock
Block to be moved.
position
Type: NodePosition
Relative position of the new block w.r.t. referenceBlock.
referenceBlock
Type: PostSharp.Sdk.CodeModel.InstructionBlock
Block after or before which movedBlock has to be inserted, or null if the new block has to be inserted at the first or the last.
See Also