"is" keyword in managed code

hi guys.

i have a CLR project and a c++ managed class.
i need to mimic the behavior of the "is" keyword from c# but i dont know how to do it in managed code.

part of my code:
1.C# code:
Collapse | Copy Code

public class emailMsg : Msg
{
string email;
}

2.C++ manged code
Collapse | Copy Code

Msg^ msg = gcnew Msg();
if (msg is emailMsg)
{
//DO SOMETHING
}


the above if sentence is not compiling since managed code dont recognize the "is" keyword.
how can i solve it?
To be honest, that doesn't look like standard C++.

Anyway, I think the following answers your question:
http://www.cplusplus.com/forum/general/21246/
Topic archived. No new replies allowed.