get value from c# enums

后端 未结 6 2137
无人共我
无人共我 2021-01-18 05:39

I have an enum

public enum ProductionStatus {
    Received = 000,
    Validated = 010,
    PlannedAndConverted = 020,
    InProduction = 030,
    QAChecked          


        
6条回答
  •  庸人自扰
    2021-01-18 06:15

    Just to throw another solution in there...

    ((int)ProductionStatus.Validated).ToString("D3");
    

提交回复
热议问题