@#¥%……

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

public enum eErrorDetailCode : int {  登陆成功 = 0,  登出 = 1,  应用错误 = 2,  成功 = 16,  失败 = 17 }

foreach (

  int intError in Enum.GetValues(typeof(eErrorDetailCode))) {    

  strKey = intError.ToString();    

  strValue = Enum.GetName(typeof(eErrorDetailCode), intError);

}

posted on 2014-10-20 19:00  yufan27209  阅读(208)  评论(0编辑  收藏  举报