我有一个枚举
public enum ProductionStatus {
Received = 000,
Validated = 010,
PlannedAndConverted = 020,
InProduction = 030,
QAChecked = 040,
Delivered = 070,
RejectedOrCancelled = 100
}
我需要从这个枚举中按键获取值,例如选择ProductionStatus.Validated
它时应该返回 010。我该怎么做?