📜  循环遍历枚举 c# 代码示例

📅  最后修改于: 2022-03-11 14:49:12.110000             🧑  作者: Mango

代码示例1
public enum Days {
  Monday,
  Tuesday,
  Wednesday
}

foreach(Days day in Enum.GetValues(typeof(Days))) {
  
}