It’s always said that using interfaces we can achieve multiple inheritance in .NET.
While posting this question I also went this Are interfaces redundant with multiple inheritance?.
So far in my Development experience I haven’t used interface to achieve multiple inheritance OR the need for that didn’t arise.
Now my question is, is there any example for multiple inheritance in .NET frameworks or any popular libraries in .NET world.
Thanks
This is actually not true. There is no true multiple inheritance in .NET. Interfaces merely provide a mechanism to accomplish many of the same goals as multiple inheritance, with far fewer corner cases that cause problems.
Again – there is no multiple inheritance in .NET. Interfaces are used throughout the framework to provide reuse without having to specify a fixed base type, however. LINQ is a great example – nearly all of the functionality provided by LINQ works against interfaces, which allows that functionality to work across multiple types, without requiring multiple inheritance.