2010年3月18日

枚举的遍历和字符串转枚举,枚举转字符串 转

摘要: enum Score { EE,EX,BE,ME,PME } 枚举的遍历 foreach( Scorecity in enum.getvalues( typeof( Score) ) ){ }字符串转枚举 Score enumtype; string strTypeB = "EE"; enumtype = (Score)Enum.Parse(typeof(Score)... 阅读全文

posted @ 2010-03-18 11:03 沸石 阅读(338) 评论(0) 推荐(0) 编辑

导航