摘要:
usingSystem;publicclassParseTest{[FlagsAttribute]enumColors{Red=1,Green=2,Blue=4,Yellow=8};publicstaticvoidMain(){Console.WriteLine("TheentriesoftheColorsEnumare:");foreach(stringcolorNameinEnum.GetNames(typeof(Colors))){Console.WriteLine("{0}={1}",colorName,Convert.ToInt32(Enum. 阅读全文