这里总结了两种方法如下:
#1.
enum Days { Saturday, Sunday, Monday, Tuesday, Wednesday, Thursday, Friday }; Type weekdays = typeof(Days);
foreach ( string s in Enum.GetNames(weekdays) )
Enum.Format( weekdays, Enum.Parse(weekdays, s);
#2.
enum Days { Saturday, Sunday, Monday, Tuesday, Wednesday, Thursday, Friday };
foreach ( var v in typeof(Days).GetFields())
Days day = ( Days )v.GetValue(typeof( Days ));