typeof equivalent in MC++

  • Thread starter Thread starter 011
  • Start date Start date
0

011

Hello, All!

Is there any equivalent to C#'s typeof() in Managed C++?

Regards, 011.

Winamp 5.0 (playing): Stratovarius - 4th Reich
 
011 said:
Is there any equivalent to C#'s typeof() in Managed C++?

Do you need to get the type of a managed object? If so, you can use

myObj->GetType()

to get an instance of the System::Type class or

myObj->GetType()->get_FullName()

if you want a string.

If that does not help then post some more details and someone will probably
be able to help.

Regards,
Will
 
Hello, William!
You wrote on Wed, 17 Mar 2004 17:05:56 -0500:

WDM> Do you need to get the type of a managed object? If so, you
WDM> can use
WDM> myObj->GetType()
WDM> to get an instance of the System::Type class or
WDM> myObj->GetType()->get_FullName()
WDM> if you want a string.
WDM> If that does not help then post some more details and someone
WDM> will probably be able to help.

Already find the answer: __typeof.


Regards,
011.

Winamp 5.0 (not active)
 
Back
Top