C
Chad Silva
I'm getting a boolean property through reflection. That
part works fine. Since PropertyInfo->GetValue returns
Object*, to use it I need to cast it to a bool.
This seems like (and likely is) the simplest thing, but
i've been looking far and wide but can't seem to find the
answer. The docs seem to say that:
*dynamic_cast<__box Boolean*>(myBoolObject)
would do the trick. That works fine for my Int32
properties...but bombs on bools. Can anyone point me in
the right direction? (i'm relegated to using ToString and
comparing it to "True", and that's just cheezy
Thanks in advance!
Chad
part works fine. Since PropertyInfo->GetValue returns
Object*, to use it I need to cast it to a bool.
This seems like (and likely is) the simplest thing, but
i've been looking far and wide but can't seem to find the
answer. The docs seem to say that:
*dynamic_cast<__box Boolean*>(myBoolObject)
would do the trick. That works fine for my Int32
properties...but bombs on bools. Can anyone point me in
the right direction? (i'm relegated to using ToString and
comparing it to "True", and that's just cheezy
Thanks in advance!
Chad