JetBrains Rider 2024.3 Help

View intermediate language (IL)

JetBrains Rider allows you to study your source code and decompiled symbols as intermediate language (IL) or as C# with different levels of syntax sugar.

IL Viewer

When you open symbols from compiled assemblies, you can always study them in the intermediate language independently of their presentation in the editor. Even if the symbol is displayed in the original source file obtained through PDB, JetBrains Rider will find the related piece of IL code for it.

View intermediate language (IL) for a symbol

  1. Do one of the following:

    • Choose Tools | IL Viewer from the main menu.

    • Invoke Navigate To Ctrl+Shift+G and choose IL Code.

    • In decompiled code, you can click the IL Viewer code vision metric above a type or member declaration.

    • Right-click a symbol in the Assembly Explorer view and select IL Viewer.

  2. JetBrains Rider will display the IL code corresponding to the symbol in the IL Viewer window.

  3. While the IL Viewer window is open, the view is synchronized with the caret position in the editor and the matching code is highlighted.

JetBrains Rider: Using IL Viewer

In the IL Viewer window, you can learn descriptions of IL instructions in tooltips when hovering over an instruction. The descriptions are taken from Microsoft Learn and from the ECMA-335 standard (Partition III: CIL Instruction Set).

Details of IL instruction in a tooltip

When you place the caret at a code symbol or instruction, all usages of this item are highlighted. Loops in your code can be distinguished by corresponding indents and comments.

Last modified: 08 October 2024