-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't decompile to switch-expression when value is implicitly cast #2222
Comments
@Pathoschild I'm sorry, I just want to know how to use markdown to generate this table with multi content:
This code can't work: |
@CreateAndInject GitHub allows some basic HTML for cases like this; here's the code for that table. |
@Pathoschild Thanks, I have collapsed my content. |
To me this looks like a bug in the compiler because there is an inconsistency between switch-expressions and switch-statements. The error produced by the C# compiler is |
ILSpy can't decompile a
switch
statement when the source value is implicitly cast. This broke in ILSpy 6.2+.Steps to reproduce
.dll
file with ILSpy.Resulting code:
Details
The text was updated successfully, but these errors were encountered: