閱讀537 返回首頁    go 阿裏雲 go 技術社區[雲棲]


C# 遍曆枚舉

public enum ManageFunction_CHN { 上傳文件 = 10, 審核文件 = 20, 管理文件 = 30, 管理員工 = 40, 設置參數 = 50 } //遍曆 String[] EnumFuncTitle=Enum.GetNames(typeof(ManageFunction_CHN)); Int32 intCnt = 0; foreach(Int32 intValue in Enum.GetValues(typeof(ManageFunction_CHN))) { CheckBoxList.Items.Add(new ListItem(EnumFuncTitle[intCnt], intValue.ToString())); intCnt += 1; } 

最後更新:2017-04-02 06:51:23

  上一篇:go eclipse常用快捷鍵,大大提高效率
  下一篇:go Ogre:StaticObject和projective mapping、