📅  最后修改于: 2022-03-11 14:49:24.460000             🧑  作者: Mango
var values = Enum.GetValues(typeof(Foos));
foreach(Foos foo in values) {
// do something, use foo
}
// or
foreach(Foos foo in Enum.GetValues(typeof(Foos))) {
// do something, use foo
}