Convert Interface to Abstract Class
This refactoring converts interfaces into abstract classes thus helping you quickly change hierarchical dependency among a set of classes and interfaces.
Consider the following example:
|Before refactoring||After refactoring|
To turn a suitable interface into an abstract class
- Select an interface in one of the following ways:
Do one of the following:
- On the main menu, choose
- Right-click and choose Refactor | Convert Interface to Abstract Class on the context menu.
- Press Ctrl+Shift+R and then choose Convert Interface to Abstract Class
- If no conflicts are found, ReSharper performs the refactoring immediately. Otherwise, it prompts you to resolve conflicts.
This feature is supported in the following languages/technologies:
The instructions and examples given here address the use of the feature in C#. For details specific to other languages, see corresponding topics in the ReSharper by Language section.