枚举实现方式demo

 

 

class Program

{

static void Main(string[] args)

{

Console.WriteLine(INSTRUCTION_STATUS.新建);

Console.ReadKey();

}

}

 

 

 

class INSTRUCTION_STATUS

{

public const string 新建 = "new";

public const string 下达 = "";

public const string 完成 = "";

public const string 取消 = "";

public const string 部分完成 = "";

public const string 手动关闭 = "";

}

 

posted @ 2023-04-18 22:06  网络来者  阅读(13)  评论(0)    收藏  举报