Get which derived class an object is if it's stored in an array of its base class

Morimur55 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jul 15 06:02:52 PDT 2017


I've got a bunch of different classes all derived from the same 
base class sitting in a base[]. I need to check what the derived 
types are of these objects - is there a way to check without 
attempting to cast to every derived type?


More information about the Digitalmars-d-learn mailing list