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

InstructionBlock.AddInstructionSequence 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 InstructionSequence AddInstructionSequence(
	InstructionSequence newSequence = null,
	NodePosition position = NodePosition.After,
	InstructionSequence referenceSequence = null
)

Parameters

newSequence (Optional)
Type: PostSharp.Sdk.CodeModel.InstructionSequence
A detached InstructionSequence, or null if a new InstructionSequence should be created.
position (Optional)
Type: NodePosition
Position of the new InstructionSequence w.r.t. referenceSequence.
referenceSequence (Optional)
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.

Return Value

Type: InstructionSequence
The InstructionSequence passed in the newSequence parameter, or the newly created InstructionSequence if newSequence was null.
See Also