Expression value is never used IDE0058

Hi I configured this for C#.

I expected that rider will show an error but nothing happen.

Any suggestions?


Hello Michael,

Thank you for contacting Rider support.

Rider should suggest removing the redundant initializer when the value you assign is not used until the next assignment is made in any of the execution paths. You can find the full inspection description here.

I am not sure about your code. Would you mind sharing a repro project with us? You can upload a project to the [Upload Service]( and let me know the Upload ID.

Thank you in advance and have a nice day!


I miss the warning that the _ = is missing in row 124 of the source code.

I see this warning in the VS 2022 IDE and also want to see it in my Rider IDE.




Hello Michael,

Thank you for the clarification. This inspection comes with csharp_style_unused_value_expression_statement_preference setting in .editorconfig. Regrettably, this inspection is not supported in Rider yet.
We have [this]( issue on our tracker. We would appreciate it if you could upvote the issue to demonstrate the additional interest.

Should you have any other questions or difficulties, please let me know.
Have a nice day!

Please sign in to leave a comment.