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
Move the caret over the member you want to move.
Press Alt+Insert. From the pop-up menu select Pull Member to Base Class.
- 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. |