Kbase P127168: Comparing .NET enumeration values always returns false
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  18/04/2011 |
|
Status: Verified
SYMPTOM(s):
Comparing .NET enumeration values always returns false
Cannot compare .NET enumeration values as integers
FACT(s) (Environment):
Windows
OpenEdge 10.2x
All Supported Operating Systems
CAUSE:
Enumerations are objects and not integers so doing an equality comparison will always return false.
FIX:
Use the Progress.Util.EnumHelper class to compare enumerations.