PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Instruction­Writer Class / Instruction­Writer Methods / Instruction­Writer.​Detach­Instruction­Sequence Method / Instruction­Writer.​Detach­Instruction­Sequence Method (Boolean)

InstructionWriter.DetachInstructionSequence Method (Boolean)

Detaches the current InstructionWriter form the active InstructionSequence by specifying whether the changes should be committed or rolled back.

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 DetachInstructionSequence(
	bool commit
)

Parameters

commit
Type: System.Boolean
true if the changes should be committed, or false of they should be rolled back.
Exceptions
ExceptionCondition
InvalidOperationException This InstructionWriter has no active InstructionSequence.
See Also