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
Is your feature request related to a problem? Please describe.
I'm decompiling code that uses lots of pointer casts. Although the decompiled expressions using byte* are functionally correct, they're not very pretty.
Is your feature request related to a problem? Please describe.
I'm decompiling code that uses lots of pointer casts. Although the decompiled expressions using
byte*
are functionally correct, they're not very pretty.Source:
Decompiled:
https://sharplab.io/#v2:CYLg1APgAgzABFAjANgQJjgYQLACgDeecxC8ArgHYDOAhgGYCmCKCALHAIJVUCWA5hQC2DCgBcAFFFYAqOAAdRAJwCUREoVwktcceJ5jpyhSoDaaALpwAvHEQBuNcQC+eR6TiVajZqn2jOAMYBDNySMvJKqprqblpQAOw6egZGkWbmDtHOrlnunvRMSKhSnNz8QiISADYA9hR8ssZRWhraJLp+hk3p1raZWi64brAe1AU+cH6BwaG19Y2Rbq1tCIkdKd0W/SSDw+Rj3kVspbwCwmLJogsqS7Ekxj029m67uSP5hyxTHEEhVJfXZoxXJxRIPLYvPBOIA=
Describe the solution you'd like
Ideally, ILSpy could detect this pattern and decompile the code in a more pretty way.
Additional context
I'm open to working on this. I think it can probably be fixed somewhere around here:
ILSpy/ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs
Lines 1252 to 1253 in e94eb91
The text was updated successfully, but these errors were encountered: