<PackageReference Include="System.Reflection.Metadata" Version="11.0.0-preview.5.26302.115" />

System.Reflection.Metadata.ILOpCodeExtensions

public static class ILOpCodeExtensions
public static int GetBranchOperandSize(this ILOpCode opCode)

Calculates the size of the specified branch instruction operand.

public static ILOpCode GetLongBranch(this ILOpCode opCode)

Gets a long form of the specified branch op-code.

public static ILOpCode GetShortBranch(this ILOpCode opCode)

Gets a short form of the specified branch op-code.

public static bool IsBranch(this ILOpCode opCode)

Verifies if the specified op-code is a branch to a label.