I have a generic list class:
TMyObjectlist<T: TMyObject> = class(TObjectList<T>);
and a derived list class:
TMyDerivedObjectList = class(TMyObjectList<TMyDerivedObject>);
I want to check if an instance MyList of TMyDerivedObjectList inherits from TMyObjectList, however:
MyList.InheritsFrom(TMyObjectlist<TMyObject>)
returns False.
It turns out that MyList.Classparent is of type TMyObjectList<TMyDerivedObject>
.
Does anybody knows how to check the InheritsFrom in this case?