c# iterate enum values code example Example: c# iterate enum var values = Enum.GetValues(typeof(Foos));