foreach iteration over the names and values in the enum and their
indices.
Note that the iterator passes the enum values as type Value (i.e. int),
rather than values of the real enum E. This is in order to keep the
iteration functionality in the IEnum interface, which knows nothing of
E.
foreach iteration over the names and values in the enum and their indices.
Note that the iterator passes the enum values as type Value (i.e. int), rather than values of the real enum E. This is in order to keep the iteration functionality in the IEnum interface, which knows nothing of E.