C++/CX - Check the type of an object?

Is it possible to check the type of an object in C++/CX ?

I have a Vector of objects which derive from ICustomObject and as I enumerate the objects from the Vector, i'd like to know what the actual object type is. This is so that I know what properties of that object should be accessible to me.


You can use dynamic_cast - if the object is an object of MyObjectType, the result will be non null, if it's another type, the result will be nullptr.

I found that this works just fine!

 Type^ meh = element->GetType();

Need Your Help

Laravel relationships

php mysql laravel-4 eloquent

Trying to figure what table I need to make this relationship to work...

Why is my SD Card not writable (Android)?

android storage sd-card

In the emulator I can't seem to write to the attached SDCard. The following code always spits out the "can't write root" log message, but not the "can't read root" one.