Possible to get Class of Interface at runtime

Josh Phillips via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jan 23 13:03:21 PST 2016


On Friday, 22 January 2016 at 23:44:34 UTC, Adam D. Ruppe wrote:
> There's a .classinfo property that works on Objects.
>
> If you have an interface, cast to Object first, and check for 
> null, then get .classinfo off that.

I tried this but it will return A not B


More information about the Digitalmars-d-learn mailing list