B
Bret Pehrson
Since managed code (C++/C#/etc.) doesn't support multiple inheritance, does
anyone have a suitable work-around? To me, this is a *serious* limitation of
the .NET subsystem.
I'm aware of *interfaces*, but they are for the *USER* of the class, not the
*IMPLEMENTOR*. I'm also aware of adding multiple classes to a class and then
creating wrappers (more of a HAS-A implementation than IS-A), but that is
tedious and again is more for the class user and doesn't support polymorphism.
Here is an example:
Suppose I have a non-trivial class that has no interface (it is purely a
functional component). There is *no way* to add an interface (ala forms) to
that component without changing the base class itself.
anyone have a suitable work-around? To me, this is a *serious* limitation of
the .NET subsystem.
I'm aware of *interfaces*, but they are for the *USER* of the class, not the
*IMPLEMENTOR*. I'm also aware of adding multiple classes to a class and then
creating wrappers (more of a HAS-A implementation than IS-A), but that is
tedious and again is more for the class user and doesn't support polymorphism.
Here is an example:
Suppose I have a non-trivial class that has no interface (it is purely a
functional component). There is *no way* to add an interface (ala forms) to
that component without changing the base class itself.