Convert Property To Method(s) unexpected behavior

Starting with an automatic property like the following:
public DataGridView ActiveDataGridView { get; set; }
which has a getter that could be private I prefer to add a backing field, create a setter, remove the getter and use the private field directly.

ReSharper helps with this process, I use the "To Property with backing field" refactoring first, followed by a  Property To Methods refactoring. Which puts me here:
This all looks good to me so I hit next and end up with:

The setter method name is fine but the getter method name is not. I eventually realized it was because I didn't hit the return key after doing the first refactoring. You'll notice in the first picture the backing variable still has the red box. This is easy enough to work around but still thought I would mention it seems like unintended behavior.

Please sign in to leave a comment.