in .NET Framework

Iterating through Enums

Here is how you iterate through a set of Enum items:

For Each thisItem As Integer In System.Enum.GetValues(GetType(ENumName))
‘Do processing here
Next

System.Enum.GetNames is also available

References:

http://msdn.microsoft.com/en-us/library/58hssdz9%28VS.80%29.aspx