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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

out equivalent in MC++ 12
typeof equivalent in MC++ 1
Operators in MC++ 8
MC++ slower than C#? 1
Underscore and Menu 1
HOWTO: use ArgIterator 3
C++ equivalent for VB TypeOf operator? 4
MC++ slower than C#? 1

Back
Top