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

 

posted on 2023-07-17 09:39  阿霖找BUG  阅读(8)  评论(0编辑  收藏  举报