SwitchInstructionEncoder Struct

Definition

Encodes the branches of an IL switch instruction.

public readonly struct SwitchInstructionEncoder
Inheritance
SwitchInstructionEncoder

Remarks

See Switch(Int32) for usage guidelines.

Methods

Branch(LabelHandle)

Encodes a branch that is part of a switch instruction.

Applies to

Product Versions
.NET 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)