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

InstructionSequence.Remove Method (InstructionSequence)

Removes the current InstructionSequence from the MethodBodyDeclaration to which it belongs, and optionally redirects to another InstructionSequence all branching targets to the current 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 void Remove(
	InstructionSequence redirectInstructionSequence
)

Parameters

redirectInstructionSequence
Type: PostSharp.Sdk.CodeModel.InstructionSequence
InstructionSequence to which branches to the current sequence should be redirected, or null if branching targets should not be redirected.
Remarks
This method has the effect of disposing the current InstructionSequence.
See Also