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+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.

See Also

External Links