Just curious: sure, we all know that the general case of type inference for generics is undecidable. And so C# won\'t do any kind of sub-typing at all: if Foo
Since instances of generic classes have different method signatures I don't belive it would make any sence to consider specific classes to be inherited from base classes.
class Base
{
public T Method() { return default(T);}
}
If you suggest that Base and Base than both of them have "Method" with the same signature (coming from base class) and it can be called by using reference to base class.
Can you please explain what obvious return value "Method" will have in your system if one points to Base
or Base
object by pointing to base class?