Forum Discussion
HKosova
Alumni
15 years agoHi Matthew,
>>
When I try
...
if an object's property (or method) returns true or false, I don't have to explicitly cast to bool in if statements. I wonder why this situation is different.
<<
The dev team have investigated the InvalidCastException issue. It's a bug, and it's going to be fixed in one of future releases. Thanks for bringing this to our attention!
Meanwhile, please use the explicit boolean cast as in my previous reply.
>>
When I try
if (!Connect.aqObject["IsSupported"](checkbox, "ValueChecked"))an InvalidCastException occurs.
...
if an object's property (or method) returns true or false, I don't have to explicitly cast to bool in if statements. I wonder why this situation is different.
<<
The dev team have investigated the InvalidCastException issue. It's a bug, and it's going to be fixed in one of future releases. Thanks for bringing this to our attention!
Meanwhile, please use the explicit boolean cast as in my previous reply.