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

InstructionBlock.SplitBlockAfterSequence Method

Splits the current InstructionBlock in two blocks after an InstructionSequence.

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 InstructionBlock SplitBlockAfterSequence(
	InstructionSequence sequence
)

Parameters

sequence
Type: PostSharp.Sdk.CodeModel.InstructionSequence
An InstructionSequence belonging to the current InstructionBlock.

Return Value

Type: InstructionBlock
A new InstructionBlock containing the second part of the split block.
Exceptions
ExceptionCondition
ArgumentNullException The sequence argument is null.
ArgumentException The sequence does not belong to the current InstructionBlock.
See Also