Working with Code
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 Symbol Information to Clipboard
- Structural Navigation with Tab and Shift+Tab
- Extend/Shrink Selection
- Select Containing Declarations
- Highlight Matching Delimiters
- Highlight Current Line
- Inspect This
- Explore Type Hierarchy
- Explore Type Dependency Diagram
- Access Decompiled Files