can you loop through enums code example Example: traversing an enum c# var values = Enum.GetValues(typeof(Foos)).Cast<Foos>();