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

InstructionSequence.SplitAfterReaderPosition Method

Splits the current sequence after the position of an InstructionReader, and returns a new InstructionSequence containing the second part of the sequence.

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 SplitAfterReaderPosition(
	InstructionReader reader
)

Parameters

reader
Type: PostSharp.Sdk.CodeModel.InstructionReader
An InstructionReader positioned on the current InstructionSequence.

Return Value

Type: InstructionSequence
The InstructionSequence containing the second part of the sequence, or null if reader is at the end of the sequence.
Exceptions
ExceptionCondition
InvalidOperationExceptionThe InstructionReader is not positioned at the current InstructionSequence.
See Also