枚举获取

Array tt=Enum.GetValues(typeof(OrderStatus));
var s = "";

foreach (OrderStatus item in tt)
{
s = s + "_" + (int)item+"_"+Enum.GetName(typeof(OrderStatus), (int)item) + "_" + item.ToCultureString() + "<br/>";

}
return this.MessageView(s);

posted @ 2015-08-28 18:32  五三中  阅读(204)  评论(0编辑  收藏  举报