iterate through an enumeration java code example Example: loop over all values in enum var values = Enum.GetValues(typeof(Foos)).Cast();