JustCode

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

  1. Select the method you want to safe delete.

    Safe Delete Selected
  2. Press Alt+Insert. From the pop-up menu select Safe Delete.

    Safe Delete Created

To safe delete a property

  1. Select the property you want to safe delete.

    Safe Delete Selected
  2. Press Alt+Insert. From the pop-up menu select Safe Delete.

    Safe Delete Created

To safe delete a method with usages

  1. Select the method you want to safe delete.

    Safe Delete Selected
  2. Press Alt+Insert. From the pop-up menu select Safe Delete.

  3. Telerik JustCode shows a dialog that warns that safe deleting the member is not safe.

    Safe Delete Dialog
  4. If you choose Yes.

    Safe Delete Created
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

Other Resources