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?