Skip to content
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

Missing casts to object for reference comparison #3322

Open
siegfriedpammer opened this issue Nov 3, 2024 Discussed in #3321 · 0 comments
Open

Missing casts to object for reference comparison #3322

siegfriedpammer opened this issue Nov 3, 2024 Discussed in #3321 · 0 comments
Labels
Bug C# Decompiler The decompiler engine itself

Comments

@siegfriedpammer
Copy link
Member

Discussed in #3321

Originally posted by greenozon November 3, 2024
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
image

and IL for it:
image

Original code looks like

image

@siegfriedpammer siegfriedpammer added Bug Decompiler The decompiler engine itself C# labels Nov 3, 2024
@siegfriedpammer siegfriedpammer changed the title Mising casts to object for reference comparison Missing casts to object for reference comparison Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug C# Decompiler The decompiler engine itself
Projects
None yet
Development

No branches or pull requests

1 participant