I’ve searched awhile and couldn’t find a specific topic on this thread: what is the best root way to check if object is from specific type?
I know that I can use
obj->ClassName and compare it to the string, however it seems that there may be a better way for doing that.
Specially, I want to loop over TList objects and check them if they are of a specific type, say: TDirectory.
Thanks in advance,