I have an interface that is used by several classes and the interface implementation is the same for all the classes. I would make it a base abstract class, but then it would stop the deriving classes from inhering from another class later on, which I need. So instead of reimplementing the same interface in all the classes, can I somehow implement the interface in one place, like an .h file and include the .h file in the cs file so the class “implements” the interface.
By the way, the interface consists mostly of properties and changed on delegates.
I’m a little rusty on my C#, so there may certainly be a C#-specific way of doing this. However, in a more general sense, you could provide the implementation in its own, standard class file. For each class that needs to implement the interface, you would still need to declare the interface methods – but instead of having lengthy implementations copied-and-pasted into each, you could have one-line calls to the shared “include” implementation.
(This probably won’t be the best solution, but should be a workable one that could at least get you started.)