get actual classinfo through an interface?

Robert Fraser fraserofthenight at gmail.com
Wed Nov 21 17:36:51 PST 2007


BC wrote:
> new question. since IInterface.classinfo returns IInterface, how to get
> the actual value of the concrete class?
> 

typeid.

interface Foo { }
class Bar : Foo { }
// ...
Foo foo = new Bar();
TypeInfo ti = typeid(foo);


More information about the Digitalmars-d-learn mailing list