1

Situation: Base class B where classes X, Y and Z derive from.

B is unwanted since it only provides a few properties and not general usefull implementation. I'd like to collapse all code from B into derived classes X, Y and Z.

Does a refactoring command exist for this usecase in e.g. Visual Studio (2010), Resharper (7.1/8.0/8.1) or VSCommands2010?

1 Answer 1

2

I think Push members down (Resharper) is what you are looking for:

  1. Open the base class B
  2. Right click on the class name
  3. Refactor...
  4. Push Members Down...
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.