enum Foos { Foo, Bar, } foreach(Foos val in Enum.GetValues(typeof(Foos))) { //Do whatever with the value :D }