Closed DATA-GaMi closed 2 years ago
I've seen this before, this is because inspecting assembly was compiled in the Debug profile
The flag
local variables usually occur when decompiling debug builds as pointed out by @GazziFX. However, this file might be obfuscated with some sort of protection that injects additional local variables. Debug builds would usually only have one "level" of flag variable like shown in the example below:
bool flag1 = Console.ReadLine() == "test";
if (flag1) {
}
Your file however features something like this which I have not seen in debug builds and is probably an indication that this file was in some way obfuscated:
bool flag1 = Console.ReadLine() == "test";
bool flag2 = flag1;
if (flag2) {
}
The ILSpy 2.4 decompiler engine used by dnSpyEx does not currently do a good job at inlining unnecessary variables and hence this rather messy output is produced.
As for the big amount of if-else
conditions, this is very likely just user code being that messy.
okay.I'll try to change the decomplier engine version.
Before clicking
Submit new issue
, try the latest buildThe style of the code generated after decompilation is very strange, how to format the code?