I want to refactor multiple classes that I think should derive from one base class.
How to properly accomplish this refactoring using ReSharper 6 ? I can extract superclass from one of the classes, but what next? Do I have to manually then derive from this base class and search for same members in every class I want to be derived?
BaseClass
or somethingBaseClass2
or somethingBaseClass
and BaseClass2
line for line. If they're not identical, then refactor them to make them identical.BaseClass2
to BaseClass
BaseClass2
Repeat as required.
Note this is pretty much the same procedure to use when you find some common code you feel should be all a single method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With