how to iterate over an enum code example
Example 1: loop over enum values
var values = Enum.GetValues(typeof(EnumName));
foreach (var value in values)
{
Combobox.Items.Add(value.ToString());
}
Example 2: iterate through an enum java
for (enumerator s : enumerator.values()) {
// do abc
}