Tag Archives: C#

Multiple inheritance in C# (how to fake it)

Diamond Inheritance

C# doesn’t allow for multiple inheritance, as Microsoft made a design decision when creating the .NET framework not to do so. Presumably, this is to avoid situations such as the diamond problem from occurring in the languages, among others.

However, what if we want to share methods or properties across classes that already have differing base classes?
Continue reading