摘要: Console.WriteLine("Name:{0},Value:{0:D}", enumData.GetValue(i)); Name:Black,Value:0Name:DarkBlue,Value:1Name:DarkGreen,Value:2Name:DarkCyan,Value:3Nam 阅读全文
posted @ 2016-06-13 23:18 FredGrit 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Array enumData = Enum.GetValues(e.GetType()); Console.WriteLine("This enum has {0} members.", enumData.Length); for (int i = 0; i < enumData.Length; i 阅读全文
posted @ 2016-06-13 23:05 FredGrit 阅读(337) 评论(0) 推荐(0) 编辑