Use Base Type Where Possible
The Use Base Type Where Possible refactoring allows you to replace some or all of the references to a selected type with references of its base type. The list of base types is provided. Also, you can optionally choose not to replace those references that appear in is and typeof operators.
To use base type where possible
- In the editor, place the caret at the name of the symbol to be deleted.
- Do one of the following:
- On the main menu, click ReSharper | Refactor | Use Base Type Where Possible.
- Right-click the method name and select Refactor | Use Base Type Where Possible in the context menu.
- Press Ctrl + Shift + R, and then select Use Base Type Where Possible.
The Use Base Type Where Possible dialog box opens.

- In the list of base types of the selected type, select which one to use for replacement.
- Select whether you want to Replace types in 'is' operator and/or Replace types in 'typeof' operator. These categories of references are optional.
- Click Continue. If no conflicts are found, the selected categories of references are updated immediately.
See Also
Refactoring Code