<PackageReference Include="System.Reflection.Metadata" Version="11.0.0-rc.2.26504.105" />

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.