I suggest you ...

Show CompilerGenerated Code in C#

Show the CompilerGenerated code in C#. Currently enabling the options shows only the class declarations.
Eg:
[CompilerGenerated]
private static Action CS$<>9__CachedAnonymousMethodDelegate2;

where as, it would be helpful if the tool can instead show something like this:
[CompilerGenerated]
private sealed class <>c__DisplayClass1
{
// Fields
public int x;

// Methods
public void <Main>b__0()
{
this.x++;
}
}

46 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Biranchi shared this idea  ·   ·  Admin →

    4 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Rene commented  · 

        Thansk Vladimir.

        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.

      • Rene commented  · 

        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
        {
        get;
        set;
        }

        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.

        Thanks.

      Feedback and Knowledge Base