我需要创建一个这样的枚举:
Batch.Status:
0 - Batch is Open
8 - Batch is Blind Closed
Else – Batch is Closed
我尝试创建枚举状态:
public enum Status
{
BatchIsOpen = 0,
BatchIsClosed ,//= 1
BatchIsBlindClose = 8,
//BatchIsClosed //= 9
}
但是你可以看到它不符合要求BatchIsClosed是0和8的情况。如何用Enum处理它? 感谢