Telerik® JustCode™ by Progress

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

  1. Select the name of the abstract class you want to convert.

    Convert Abstract Class To Interface Selected
  2. Press Alt+Insert. From the pop-up menu select Convert Abstract Class To Interface.

  3. Telerik® 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.

  4. The result is:

    Convert Abstract Class To Interface Result
Caution

If conflicts are found a warning window will be shown

Convert Abstract Class To Interface Warning

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.