Multiple inheritance is not supported by C#
Why doesn't C# support multiple inheritance?[
^]
What you could do is wrap the
AStarGridSearchItem
class in
AStarGridSearchLabel
and implement an interface, e.g.
interface IStarGridSearchItem
{
void Foo();
}
class AStarGridSearchItem
{
public void Foo() { }
}
class AStarGridSearchLabel : Label, IStarGridSearchItem
{
private AStarGridSearchItem _item = new AStarGridSearchItem() ;
public void Foo()
{
_item.Foo();
}
}