Robert Fraser wrote: > 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); Error: foo is used as a type.