Answers for "c++ managed code get type of class"

0

c++ managed code get type of class

MyObject^ mo = gcnew MyObject();
Object^ o = mo;

if( o->GetType() == MyObject::typeid )
{
    // Do somethine with the object
}
else
{
    // Try something else
}
Posted by: Guest on March-18-2022

Browse Popular Code Answers by Language