Use explicit type on inline out variable declaration

When using the "inline out variable declaration" context action, it currently inlines the variable as "var", despite the original declaration being explicit and all "'var' usage in declarations" options being set to "Use explicit type".  I can't seem to find an option anywhere to make it use the explicit type (though it does immediately pop up a suggestion to switch the var to the explicit type, annoying to have to do a 2-step thing each time though.) Am I just missing a setting somewhere, or is there actually no way to do this?

0
3 comments

Hello!

 

Thank you for the feedback.

Corresponding isssue is fixed in ReSharper 2017.2.1 version - https://youtrack.jetbrains.com/issue/RSRP-466156

Please try to install the latest version - https://www.jetbrains.com/resharper/download/

Thank you.

1

Works great, thank you!

0
Avatar
Permanently deleted user

I am using 2018.1.1 and having the same issue. Interestingly, it works as needed in one of the project in my solution and doesn't work in another. How can I fix it to be consistent for all projects?

0

Please sign in to leave a comment.