Enum to list

From http://stackoverflow.com/questions/1167361/how-do-i-convert-an-enum-to-a-list-in-c