ReSharper Web Help

The Use Base Type Where Possible refactoring helps replace some or all references to a selected type with references to its base type. You can optionally choose not to replace references in is and typeof operators.

To use base type where possible
  1. Place the caret at the name of a type.
  2. Do one of the following:
    • On the main menu, choose ReSharper | Refactor | Use Base Type Where Possible.
    • Choose Refactor | Use Base Type Where Possible on the context menu.
    • Press Ctrl+Shift+RCtrl+Shift+R, then click Use Base Type Where Possible.
  3. The Use Base Type Where Possible dialog box opens.


  4. Specify the following options:
    • 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.
  5. Click Next. If no conflicts are found, selected categories of references are updated immediately. Otherwise, resolve conflicts.

This feature is supported in the following languages/technologies:

C# VB.NET HTML ASPX Razor JavaScript TypeScript CSS XML XAML RESX Build Scripts
feature_available feature_available feature_available feature_available


The instructions and examples given here address the use of the feature in C#. For details specific to other languages, see the corresponding topics in the ReSharper by Language section.