我有下面的枚举类想知道我如何能够将此枚举作为 IEnumerable 列表发送回来,这样我就看不到数字而是列表中的实际名称,例如“星期一”
public enum WeekDays
{
Monday = 1,
Tuesday = 2,
Wednesday = 3,
Thursday = 4,
Friday = 5,
Saturday = 6,
Sunday = 7
}