Comments
1 comment
-
You are looking at C# 3.5 code with some property definitions of the form:
int Foo { get; set; }
If you decompile with the settings as 2.0, you see the compiler generated code.[CompilerGenerated] private int <Foo>k__BackingField; private int Foo { [CompilerGenerated] get; [CompilerGenerated] set; }
If you decompile at 3.5 then the compiler generated items are hidden, giving just the codeprivate int Foo { get; set; }
You can change the optimization level in View/Options/Optimization.
Add comment
Please sign in to leave a comment.
I have just done a test disassembly on an exe file but it won't recompile as the generated code cobtains:
[CompilerGenerated]
private string <Body>k__BackingField;
[CompilerGenerated]
private string <InputString>k__BackingField;
[CompilerGenerated]
private string <Name>k__BackingField;
Why has it genertaed these statements - <Body> etc.?