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