Referring to this question (now deleted): C# how to inherit from multiple base classes without interfaces
I wrote the question today. It got almost immediately downvoted and closed because it "needs to be more focused".
I looked at the Stack Overflow guide on closed questions for guidance on how I could improve my question and get it re-opened.
All it said was:
I actually do think I only asked a single question in the post and I'm not sure how I could reduce it or break it up into a set of smaller questions (but please help me do so, so I can re-open it and perhaps others so I can find a solution).
Most of the question content is the setup so that the reader can understand the problem once it is presented plainly. After the setup, I state the single question clearly:
The problem is that these objects need both FacConfig2 and FacConfig3 members (see tables above), but when instantiating objects of these classes, they will not contain FacConfig2 config members because they inherit from Conf3Facility which itself inherits directly from the parent class of the Conf2Facility class where the relevant member is introduced. This means that the necessary class to inject the necessary member is skipped in the inheritance chain.
...
Is there any way to accomplish what I want without code duplication and without using composition in C#?
I also think I state the overall goal of the exercise clearly:
The goal is to accomplish this with as little code duplication as possible. Most of this can be accomplished with the following hierarchy that allows each relevant property to be defined in only one place
Where "this" references the tables of constraints that appeared directly above the goal statement.