I would like to store enum values to an array of integer using foreach or for loop,
enum timeSlots
{
AM9h = 0,
AM10h = 1,
AM11h = 2,
AM12h = 3,
PM1h = 4,
PM2h = 5,
PM3h = 6,
PM4h = 7,
PM5h = 8,
PM6h = 9,
}
how can I store timeslots enum's value to an int array?