随笔 - 272  文章 - 7  评论 - 27  阅读 - 83万
10 2012 档案
遍历枚举类型
摘要:using System; public class EnumTest { enum Days { Saturday, Sunday, Monday, Tuesday, Wednesday, Thursday, Friday }; public static void Main() { Type weekdays = typeof(Days); Console.WriteLine("The days of the week, and their corresponding values in the Days Enum are:"); foreach ( string s 阅读全文
posted @ 2012-10-24 16:24 NLazyo 阅读(267) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示