public enum Days {
Monday,
Tuesday,
Wednesday
}
foreach(Days day in Enum.GetValues(typeof(Days))) {
}
enum Foos {
Foo,
Bar,
}
foreach(Foos val in Enum.GetValues(typeof(Foos))) {
//Do whatever with the value :D
}
var values = Enum.GetValues(typeof(Foos));
var values = Enum.GetValues(typeof(Foos));