Refactoring a C# derived class with method dependancies
- by drelihan
Hi Folks,
I want to get your opinion on this.
I have a class which is derived from a base class. I don't have control over the code in the base class and it is critical to the system that I derive from it.
In my class I inherite two methods that are critical to the system and are used in pretty much every function, many times.
I intend to refactor this derived class and extract some classes from it - this won't be a problem. What I'm not sure about is, is it worth extracting class if I have to constantly make call backs to my main class to access the two methods (or public wrappers to the methods)???
Thanks