The Convert Interface To Abstract Class refactoring allows you to easily convert an interface to an abstract class.
Note |
|---|
Language Support Supported: C#, VB.NET Not relevant: JavaScript, ASP.NET,XAML, HTML |
To convert an interface to an abstract class
Select the name of the interface you want to convert.
Press Alt+Insert. From the pop-up menu select Convert Interface To Abstract Class.
JustCode will convert the interface to an abstract class. All interface members will be made abstract.
The result is:
Caution |
|---|
If a class that inherits the interface, that is to be converted, already has a base class a warning will be shown before executing the fix. A warning will also be shown if an interface implements the selected interface. |
Tip |
|---|
To convert an interface to an abstract class you can also navigate on the main menu. Choose JustCode | Refactor | Convert Interface To Abstract Class. |