Simulating Multiple Inheritance in C# 3.0

posted in: Language Features | 0

It is possible to simulate multiple inheritance in C#, in a limited way, by applying extension methods to interfaces. An example is shown below. Note that this works only for method implementation inheritance, but not for properties or any other kinds of base members…