Hi
I have two constant integers and when I try to compare their values, I get
error:
Operator '==' cannot be applied to operands of type ...
Here is a cut down version of my code
public class MY_CONSTANTS
{
public const int FOO = 1;
...
}
MY_CONSTANTS m_value = MY_CONSTANTS.FOO;
public bool Bar(MY_CONSTANTS val)
{
return m_value == val; // Errors.
}
Is there a way around this?
Thanks