Loop through Enumerations in C#

added by teebot
9/9/2010 12:48:08 AM

0 Kicks, 63 Views

I recently found out it's pretty easy to iterate through enums by first getting the names of the enums and then parsing those back as enum.


1 comments

Tr3v
9/9/2010 3:38:33 AM
I've posted an example on your blog, you would be better off using Enum.GetValues(typeof(ImageSide)))