C#枚举-通过值获取名字,通过名称获取值
摘要:
public enum ProtoType { Move = 1, Enter = 2, Leave = 3, Attack, Die, } print("ProtoType.Move:" + ProtoType.Move); print("ProtoType.Move.ToString():" + 阅读全文
posted @ 2022-03-29 17:46 张德长 阅读(1874) 评论(0) 推荐(0) 编辑