Activity overview
Latest activity by wickyhu
Incorrect C# for event handler in interface type
Hi,
For this simple class:
public interface ITestInterface
{
event EventHandler Changed;
}
Reflector 7 decompiler shows:
public interface ITestInterface
{
// Events
abstract event EventHandler Chan...
Hi,
For second sample, more correct:
{
string str = @C:\Program Files (x86);
return str ?? @C:\Program Files (x86);
}
IL of above C#:
0 L_0000: ldstr "C:\Program Files (x86)"
1 L_0005: stloc.0
2 L_0006: ldloc.0
3 L_0007: dup
4 L_0008: brtrue.s 7 -> ret
5 L_000a: pop
6 L_000b: ldstr "C:\Program Files (x86)"
7 L_0010: ret
you can see additional stloc.1 and ldloc.1 make Reflector wrong.
Regards
Wicky / comments
Hi,
For second sample, more correct:
{
string str = @C:\Program Files (x86);
return str ?? @C:\Program Files (x86);
}
IL of above C#:
0 L_0000: ldstr "C:\Program Files (x86)"
1 L_0005: st...
Hi,
Here is another more simple sample to re-produce the case:
0 L_0000: ldstr "C:\Program Files (x86)"
1 L_0005: stloc.0
2 L_0006: ldloc.0
3 L_0007: dup
4 L_0008: brtrue 7 -> stloc.1
5 L_000d: pop
6 L_000e: ldstr "C:\Program Files (x86)"
7 L_0013: stloc.1
8 L_0014: ldloc.1
9 L_0015: ret
Current output:
{
// This item is obfuscated and can not be translated.
string str = @C:\Program Files (x86);
if (str != null)
{
goto Label_0013;
}
return @C:\Program Files (x86);
}
It should be:
{
string str = @C:\Program Files (x86);
if (str != null)
{
return str;
}
return @C:\Program Files (x86);
}
Hope it helps.
Regards
Wicky / comments
Hi,
Here is another more simple sample to re-produce the case:
0 L_0000: ldstr "C:\Program Files (x86)"
1 L_0005: stloc.0
2 L_0006: ldloc.0
3 L_0007: dup
4 L_0008: brtrue 7...
CTRL+F4 can't close opened assembly
Hi,
In 6.5, I can easily close opened assembly by CTRL+F4.
In 7.0, it will close tab, but even after I close all tabs, it won't close selected assembly.
I suggest CTRL+F4 to close current selected ...
Reflector 7 decompiler issue
Hi,
Please take a look on these IL:
0 L_0000: ldarg.1
1 L_0001: dup
2 L_0002: brtrue 5 -> starg.s p0
3 L_0007: pop
4 L_0008: call System.String System.Environment::get_Curr...
Reflector 7 Beta1 can't be closed
Hi,
I just downloaded Reflector 7 beta1.
It can't be closed after started.
Always show error report:
Could not find a part of the path "C:\Users\wicky\AppData\Local\Red Gate\.Net Reflector 7\Persis...
Suggestion: Show internal error message if possible
Hello,
Currently, .Net Reflector will show this remarks at the beginning of method if it's not completely decompiled:
// This item is obfuscated and can not be translated.
But we don't know what's ...