enum遍历http://topic.csdn.net/t/20030613/00/1909808.html
来源:互联网 发布:java 0x00 编辑:程序博客网 时间:2024/06/05 09:58
enum enu { a=1, b=2, c=3, d=4 };
private void button2_Click(object sender, System.EventArgs e) {
//foreach
foreach(string s in Enum.GetNames(typeof(enu))){
MessageBox.Show(s);
}
foreach(int s in Enum.GetValues(typeof(enu))) {
MessageBox.Show(s.ToString());
}
//to Array[]
string[] en = Enum.GetNames(typeof(enu));
Array ev = Enum.GetValues(typeof(enu));
}
private void button2_Click(object sender, System.EventArgs e) {
//foreach
foreach(string s in Enum.GetNames(typeof(enu))){
MessageBox.Show(s);
}
foreach(int s in Enum.GetValues(typeof(enu))) {
MessageBox.Show(s.ToString());
}
//to Array[]
string[] en = Enum.GetNames(typeof(enu));
Array ev = Enum.GetValues(typeof(enu));
}
- enum遍历http://topic.csdn.net/t/20030613/00/1909808.html
- http://topic.csdn.net/t/20030106/17/1332084.html
- http://topic.csdn.net/t/20050406/11/3912976.html
- http://topic.csdn.net/t/20031204/21/2528768.html
- http://topic.csdn.net/t/20061023/19/5103384.html
- dataset 导入 excel参考 http://topic.csdn.net/t/20050119/16/3738430.html
- 9003错误,sqlserver无法启动,HELP!!!十万火急~~~!!http://topic.csdn.net/t/20060708/09/4867769.html
- 改变表的所有者http://topic.csdn.net/t/20020221/19/536354.html
- 让程序只启动一个实例(from: http://topic.csdn.net/t/20010427/08/106676.html)
- cxGrid使用技巧 转载自http://topic.csdn.net/t/20060106/09/4500997.html#
- temp_http://topic.csdn.net/t/20040130/02/2687082.html
- 请问winxp家庭版下能不能装IIs,怎么装?(http://topic.csdn.net/t/20030306/15/1499030.html)
- 怎么在获得一个库里面所有的表名?http://topic.csdn.net/t/20020801/09/915234.html
- 清问一个Windows的程序的LDT是谁创建的?http://topic.csdn.net/t/20061228/17/5262577.html
- 如何把标准输出重定向为指定缓冲区 http://topic.csdn.net/t/20020111/16/472320.html
- 将字典对象存入到Application中 (参考http://topic.csdn.net/t/20060524/15/4775541.html)
- http://topic.csdn.net/u/20080323/20/30d63220-03b5-4ead-be4c-d6c88e6399fc.html
- http://topic.csdn.net/u/20080627/10/26171a67-bcf2-4463-a93f-b0cbe622ce78.html
- java软件工程师面试常见问题!
- XML的安全弱点和漏洞
- 学习PHP的准备!
- javafx学习之数据库操作
- 关于选用DOCTYPE及DOCTYPE对页面css及js的影响
- enum遍历http://topic.csdn.net/t/20030613/00/1909808.html
- 推荐好书一本....
- google的秘密入口
- C#判断奇偶数的函數
- C#获得sql存储过程return返回的值和返回参数返回的值
- 在存储过程中使用参数以及循环
- 第一篇 使用PHP
- 方便管理plugin或rcp的icons
- ASP.NET 2.0个性化配置(profile)