How to know the base type of an inherited generic type ?
- by T.Falise
Consider this code :
class MyClass<T>
{
}
class AnotherClass : MyClass<String>
{
}
When I look at the BaseType property of the AnotherType Type, it says that it is Object, where I expected to see the generic MyClass type.
Is there a way to know that AnotherClass inherits MyClass ?