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.

Example

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

Constraint

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