The Convert Abstract Class To Interface refactoring allows you to easily convert an abstract class to an interface.
Note |
|---|
Language Support Supported: C#, VB.NET Not relevant: JavaScript, ASP.NET,XAML, HTML |
To convert an abstract class to an interface
Select the name of the abstract class you want to convert.
Press Alt+Insert. From the pop-up menu select Convert Abstract Class To Interface.
JustCode will convert the abstract class to an interface. All members will be converted to interface members. If some members cannot be contained inside an interface, they will be removed. Stubs will be added for all missing members in the types that implement the newly created interface.
The result is:
Caution |
|---|
If conflicts are found a warning window will be shown Note that all usages of the removed members will not be removed. |
Tip |
|---|
To convert an abstract class to an interface you can also navigate on the main menu. Choose JustCode | Refactor | Convert Abstract Class To Interface. |