Possible to get Class of Interface at runtime
via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Jan 23 16:35:24 PST 2016
On Saturday, 23 January 2016 at 21:03:21 UTC, Josh Phillips wrote:
> 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
http://dpaste.dzfl.pl/f1bcf74d8cab
More information about the Digitalmars-d-learn
mailing list