Refactoring a C# derived class with method dependancies
Posted
by drelihan
on Stack Overflow
See other posts from Stack Overflow
or by drelihan
Published on 2010-04-29T20:13:22Z
Indexed on
2010/04/29
20:17 UTC
Read the original article
Hit count: 380
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
© Stack Overflow or respective owner