Screencast - Complex refactoring in simple steps, Part III: From Conditional to Polymorphism
Matthew Butt demonstrates how to compose simple automated refactoring steps in ReSharper to refactor code to better designs.
Ready to be inspired?
Thank you for signing up
Join our newsletter for expert tips and inspirational case studies
Your welcome email is on its way! You can pick the emails you’d like to receive by clicking the link to the Preference Centre.
In this episode we identify three classes that are being used in the same way. We introduce a common abstraction, and separate their creation and invocation. Finally, we remove a Middleman class to complete our journey to polymorphism.
The code used in this video can be found on GitHub