The Safe Delete refactoring allows you to easily delete a member and all overrides in the override hierarchy.
Note |
|---|
Language Support Supported: C#, VB.NET Not relevant: JavaScript, ASP.NET,XAML, HTML |
To safe delete a method
Select the method you want to safe delete.
Press Alt+Insert. From the pop-up menu select Safe Delete.
To safe delete a property
Select the property you want to safe delete.
Press Alt+Insert. From the pop-up menu select Safe Delete.
To safe delete a method with usages
Select the method you want to safe delete.
Press Alt+Insert. From the pop-up menu select Safe Delete.
JustCode shows a dialog that warns that safe deleting the member is not safe.
If you choose Yes.
Caution |
|---|
Safe deleting a member that has usages might result in broken code. |
Tip |
|---|
To safe delete a member you can also navigate on the main menu. Choose JustCode | Refactor | Safe Delete. |
See Also