public enum Priority
{
VeryLow = 0,
Low = 1,
Normal = 2,
High = 3,
VeryHigh = 4,
}
Priority e = Priority.High | Priority.Low | Priority.Normal | Priority.VeryHigh | Priority.VeryLow;
foreach (Priority prio in System.Enum.GetValues(e.GetType()))
{
priodrop.Items.Add(new ListItem(System.Enum.GetName(e.GetType(), priority), priority.ToString()));
}