Is it OK to use comparison operators against values of an enum?

前端 未结 0 1808
执笔经年
执笔经年 2020-12-29 18:05

In VB.Net, I typically create Enums like so:

Private Enum Zone
  IsNegative = -3
  IsBad = -2
  IsError = -1
  Undefined = 0 \' or Unknown, Nothing...
  Value         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题