c#枚举显示代码

时间:2015-11-21 14:06:54
【文件属性】:
文件名称:c#枚举显示代码
文件大小:2KB
文件格式:RAR
更新时间:2015-11-21 14:06:54
枚举显示 using System; namespace UseDll { /// /// 实验3 枚举与Type的简单应用 /// static class Type_3 { public static void Menu() { //数组的下标与菜单选项对应的枚举名称 string[] enumNames = { "", "UseDll.CustomerType",//1 "UseDll.Degree",//2 "UseDll.StaffState",//3 "UseDll.StaffState", //4 "UseDll.Area", //5 "UseDll.SceneType"//6 }; Enum[] enums ={null, CustomerType.Child, Degree.本科, StaffState.Undefined, TourState.Undefined, Area.Undefined, SceneType.自然山水 }; 以上为部分代码全部代码请下载 解压密码:www.dsbpad.com

网友评论