Well the MSIL of this assembly looks somewhat weird. I guess it's compiled in Debug configuration with no optimizations. Rather unfortunately, JustDecompile is not really optimized for cases like this.
The unused variable is actually present in the assembly and JustDecompile removes it as part of the decompilation process. The reason for that happening is that quite some variables get created in the initial stages of the decompilationthat didn't exist in the original code. Then they get aggressively inlined to make the code prettier. This process does not take into account the actual presence of the variable in the assembly. It is aimed at brevity. Sadly, this behavior cannot be changed at present.
Regards,
Tsviatko Yovtchev
Progress Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items