public enum Sea { id, age, name }
Sea s = Sea.age; Sea s1 = Sea.id; var s2 = (Sea)2;//name Console.WriteLine($"{s},{(int)s},{(int)s1},{s2}");//age,1,0,name
标签:name,int,s2,age,枚举,Sea,id From: https://www.cnblogs.com/lin-07/p/17559168.html
public enum Sea { id, age, name }
Sea s = Sea.age; Sea s1 = Sea.id; var s2 = (Sea)2;//name Console.WriteLine($"{s},{(int)s},{(int)s1},{s2}");//age,1,0,name
标签:name,int,s2,age,枚举,Sea,id From: https://www.cnblogs.com/lin-07/p/17559168.html