摘要:
Console.WriteLine("Name:{0},Value:{0:D}", enumData.GetValue(i)); Name:Black,Value:0Name:DarkBlue,Value:1Name:DarkGreen,Value:2Name:DarkCyan,Value:3Nam 阅读全文
摘要:
Array enumData = Enum.GetValues(e.GetType()); Console.WriteLine("This enum has {0} members.", enumData.Length); for (int i = 0; i < enumData.Length; i 阅读全文