- 博客(1)
- 收藏
- 关注
原创 C# 如何遍历枚举
foreach (Week day in Enum.GetValues(typeof(Week))) { Console.WriteLine((int)day + ":" + day ); } enum Week { Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday }
2021-09-29 16:14:17 930
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人