Is there a Reflector add-in or other tool that will handle auto properties?
-
19-08-2019 - |
Question
Reflector shows this for auto properties:
public string AddressLine1
{
[CompilerGenerated]
get
{
return this.<AddressLine1>k__BackingField;
}
[CompilerGenerated]
set
{
this.<AddressLine1>k__BackingField = value;
}
}
Is there any add-in or other tool that will convert it to:
public string AddressLine1 { get; set; }
I don't believe that any of these add-ins support the above: http://www.codeplex.com/reflectoraddins
buy would be happy if you proved me wrong.
Solution
The current version of Reflector shows auto properties properly in the disassembler if the language is set to C# and the optimization is set to .NET 3.5. It only shows auto properties in that manner if the optimization is set to .NET 2.0. Select View -> Options and set the Optimization setting on the Disassembler options page.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow