Convert to auto property not working?
In a .net framework 4.8 project I get a compiler warning S2292 Make this an auto-implemented property and remove its backing field.
But R# does not show the action in the action menu or under Extensions → R# → Refactor → Convert.
Why is this? What is holding the action back?
Please sign in to leave a comment.
Hello,
Could you please provide a code sample demonstrating the specified behavior?
Thank you.
Hi,
Strangely are all the warnings that I got now all have the option “To auto-property”… 😲
But that was just the reason why I asked, I was surprised I did not have that option. And I had closed VS multiple times that day, so I thought I overlooked something.
Sorry for the disturbance!