Is there a tool to view c# generated code but still at high level?
Example, if I have:
I want to view what this translates/generates to, e.g:
I tried LINQPad, but it's giving me a low-level translation like the attached screenshot
5 Replies
https://sharplab.io/ is one option
SharpLab
C#/VB/F# compiler playground.
That's great thanks. Looks to be the same as what LinqPad was calling "C# 1.0", but the format is much easier for me to understand
VS and JetBrains Rider has IL Viewer(s)
There's also: https://www.jetbrains.com/decompiler/
JetBrains
dotPeek: Free .NET Decompiler & Assembly Browser by JetBrains
dotPeek is a free tool based on ReSharper. It can reliably decompile any .NET assembly into C# or IL code.