To safely delete a symbol
- Position the caret at the name of a symbol that you want to delete.
ReSharper | Refactor | Safe Delete, or press Alt+Delete. The Safe Deletedialog box opens:
Next. If no usages of the symbol are found, the symbol is deleted immediately. If ReSharper finds usages, it shows the Conflictspage:
- Look through the list and try to resolve conflicts.
Nextto delete the symbol.
To safely remove assembly references
Select assembly references you want to remove in the
Do one of the following:
On the main menu, choose
ReSharper | Refactor | Safe Delete.
Ctrl+Shift+R, then click Safe Delete Assembly Reference.
- On the main menu, choose
If only unused references are selected, then the refactoring is performed immediately without displaying the dialog.
Safe Delete Assembly Referencedialog is displayed.
Nextto apply the refactoring.