If you explore your own assemblies, you may be interested to inspect compiler-generated code. For instance, to see how compiler deals with lambdas, closures, and auto-properties, among other things. For these purposes, dotPeek provides the Show compiler-generated code option that applies globally to all opened documents in the Code Viewer and to types in the Assembly Explorer.
By default, this option is turned off and dotPeek tries to display original code constructions where available.
The Show compiler-generated code option applies only to decompiled documents. If a document is opened using symbol files, this option does not change anything. For more information about different ways of viewing code, see Code Presentation Options.
- Click Show compiler-generated code on the toolbar.
- Tick the Show compiler-generated code check-box on the Decompiler page of dotPeek options.