Consider this situation:
We have two classes generated by Visual Studio, for example Typed Dataset Rows. These classes derive from a common base class which we can
It looks like the TableAdapter classes contained in .NET datasets has a base class that can be changed in teh designer. Is this the class you are using with partial classes, or could you use this as a way to provide a common base class where these methods could go?
I would use encapsulation in this case. Create a class (with a private instance in both classes), and delegate the SomeMethod
call to the internal, private class implementation.
This eliminates (most) of the duplication, while still allowing the benefits of unique implementations per class as necessary.