invalid operand types for operator "<operator>"

14
Mar

This error is usually pretty explicit, it is generally followed by two lines showing precisely the type of the left operand and the type of the right operand. As you can see, both are not the same type. Casting one operand to the type of the other operand will generally suffice in fixing this problem. However, before casting, make doubly sure that you did not mistakenly use the wrong variable in your test.

0
Your rating: None