Assemblies can be decompiled and presented as C# code, IL code, or original source code can be fetched from local or remote location using PDB files and symbol servers. For more information, see Presentation options for compiled code.
dotPeek decompiles code to C# 4.0. If there are
await modifiers, it decompiles code to C# 5.0. If there are exception filters or auto-property initializers, then C# 6.0 is used to present the decompiled code.
Decompiled or source code is shown in the Code viewer tabs, which have the look-and-feel of editor tabs in Visual Studio with configurable options for line numbers, word wrap, outlining, white space marks, and more.
Various aspects of working with code are described in the following sections:
- Presentation options for compiled code
- View compiler-generated code
- View metadata tokens
- View Intermediate Language (IL)
- Code outlining
- Syntax highlighting
- Parameter Information
- Quick Documentation
- Copy code reference to clipboard
- Structural navigation with Tab and Shift+Tab
- Extend/shrink selection
- Select containing declarations
- Highlighting of matching code elements
- Highlight current line
- Inspect This
- Explore type hierarchy
- Explore type dependency diagram
- Access decompiled files