KEMBAR78
Missing casts to object for reference comparison · Issue #3322 · icsharpcode/ILSpy · GitHub
Skip to content

Missing casts to object for reference comparison #3322

@siegfriedpammer

Description

@siegfriedpammer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions