You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ILSpy will turn a sufficiently-long chain of if-else if string comparisons into a switch.
I see two problems here:
The switch transform has a bug that causes it to sometimes delete a necessary variable initialization (this leaves text2 uninitialized)
The switch transform needs to check for duplicate strings (here: duplicate null) and combine these (or abort the transform if these jump to different instructions -- or maybe just always abort on duplicates)
In this case if the de-duplication was implemented that would reduce the number of case labels from 3 to 2; which would disable the decompilation into a switch.
it is obviously not a string switch, even local var "text2" does not get assigned and there are duplicated cases.
i don't have source code, it is bin file and i deleted other not related code.
1.zip
ilspy version: 6.1.0.5969
The text was updated successfully, but these errors were encountered: