JustCode

The Pull Member to Base Class refactoring allows you to move a member of a class to its base class along with any private members that it is using.

Note

Language Support

Supported: C#, VB.NET

Not relevant: ASP.NET, XAML, HTML, JavaScript

You can watch the video tutorial Pull Up Member, and Add to Inheritors.

To pull a member to a base class

  1. Move the caret over the member you want to move.

    Pull Member To Base Class Select
  2. Press Alt+Insert. From the pop-up menu select Pull Member to Base Class.

    Pull Member To Base Class Created
  3. The selected member, along with the dependencies that it is using, are moved to their base class.
Tip

To pull members to a base class you can also navigate on the main menu. Choose JustCode | Refactor | Pull Member to Base Class.