This documentation is archived and is not being maintained.

25.3 C++ RTTI versus Runtime Reflection

Visual Studio .NET 2003

The common language runtime has a much richer reflection mechanism than C++. The entry point of this information is the GetType() method of System::Object.


void f(String *s) {
   Type *t = s->GetType();


  • The C++ RTTI operators shall not be applied to managed objects. RTTI is not supported.