Skip to content

"Comparison to null is expensive" and "unity lifetime check" icon on implicit lifetime check, but not on explicit #2477

@shniqq

Description

@shniqq

If you compare a unity object against null, you get the "Comparison to null is expensive" warning and the "implicit check for unity object lifetime" icon.

Image

Image

If you then convert it to the explicit check per resharper suggestion, both hints disappear, even though the check is still performed.

Image

Image

Expected:
Both icon and hint for expensive operation should still be there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions