PostSharp SDK 6.9 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Instruction­Writer Class / Instruction­Writer Methods / Instruction­Writer.​Attach­Instruction­Sequence Method

InstructionWriter.AttachInstructionSequence Method

Attaches the current InstructionWriter to an InstructionSequence.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.9.11.0 (6.9.11.0)
Syntax
C#
public void AttachInstructionSequence(
	InstructionSequence sequence
)

Parameters

sequence
Type: PostSharp.Sdk.CodeModel.InstructionSequence
An InstructionSequence that is attached to a method.
Exceptions
ExceptionCondition
ArgumentNullException The sequence parameter is null.
ArgumentException The sequence is not attached to a method.
InvalidOperationException This InstructionWriter has already an active InstructionSequence.
See Also