Show CompilerGenerated Code in C#
Show the CompilerGenerated code in C#. Currently enabling the options shows only the class declarations.
private static Action CS$<>9__CachedAnonymousMethodDelegate2;
where as, it would be helpful if the tool can instead show something like this:
private sealed class <>c__DisplayClass1
public int x;
public void <Main>b__0()
Looks like something similar has already been requested here: http://justdecompile.uservoice.com/forums/113277-justdecompile-feature-suggestions/suggestions/7642122-show-compilergenerated-code-in-c
The details are not the same even with that option enabled. Here is an example of what I am talking about.
This is the code typed on Visual Studio: http://s27.postimg.org/u80zpwqg3/VSCode.png
This id the decompiled code generated by the JustDecompile tool: http://s12.postimg.org/igj03xsxp/Just_Decompile.png
This is the code generated by Reflector using the no optimization option: http://s4.postimg.org/h79ublhkd/Reflector.png
Feats your eyes on the decompile code from the Reflector tool! The detail richness is extraordinary. It really shows you what the compiler is doing behind the scenes.
Of course, this example is trivial, but there are a lot of other more complex syntactic sugar statements in Visual Studio where it is extremely useful to see what the compiler is doing to understand what is going on.
Thanks for sharing this idea with us, Rene!
Can you please try the "Show compiler generated types and members" option in our settings and let us know whether it can help you as well (shows the needed info)? Screenshot: http://screencast.com/t/yOL3mzYVV9
One of the things I really liked about the good old Reflector decompiling tool was that it had an option to decomplie code into raw code. In other words, you could see the compiler generated code exactly as it was generated.
For example, if I added a property declared as an automatic property such as:
public int MyProperty
The Reflector tool would decompile the code and show class members such as "get_MyProperty()", "set_MyProperty()", "<MyProperty>k__BackingField" etc. This is the code without the syntax sugar added to it.
This was an awesome feature to have because it allowed you to see what the compiler was doing behind the scenes which really helped gain a deep understanding of what is really going on with your code.
I which you guys would add such an valuable feature to the justDecompile tool.