Replies: 1 comment
-
There's currently no option to force extra casts; we try to insert them only where needed. ILSpy has its own C# compiler logic ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Quick question: is it possible to somehow tell ILSpy during decompilation that certain casting is needed, otherwise it won't compile?
eg:
ILSPy decompiled some routine as follows, but it does not compile

and IL for it:

Original code looks like
Beta Was this translation helpful? Give feedback.
All reactions