Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This refactoring applies to:
- C#
What: Convert between an auto-implemented property to a full property.
When: The logic of the property has changed.
Why: You can convert between an auto-implemented property to a full property manually, however this feature will automatically do the work for you.
How-to
Place your cursor on the property name.
Press Ctrl+. to trigger the Quick Actions and Refactorings menu.
Select from the following two options:
Select Convert to full property.
Select Use auto property.