PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Instruction­Writer Class / Instruction­Writer Methods / Instruction­Writer.​Emit­Switch­Instruction Method

InstructionWriter.EmitSwitchInstruction Method

Emits a Switch instruction.

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 override void EmitSwitchInstruction(
	InstructionSequence[] switchTargets
)

Parameters

switchTargets
Type: PostSharp.Sdk.CodeModel.InstructionSequence[]
An array of instruction sequences (InstructionSequence) which are the targets of the switch instruction.
See Also