Overriding Extension Methods

In general, you shouldn’t provide “base” functionality through extension methods. They should only be used to “extend” class functionality. If you have access to the base class code, and the functionality you’re trying to implement is logically part of the inheritance heirarchy, then you should put it in the abstract class.

My point is, just because you can doesn’t mean you should. It’s often best just to stick with good old fashioned OOP and use the newer language features when plain old OO programming falls short of providing you a reasonable solution.

Leave a Comment