enum MyEnum { a, b, c, d
}
private void Test() { string p; foreach (int i in Enum.GetValues(typeof(MyEnum))) { p = Enum.ToObject(typeof(MyEnum), i).ToString(); } }
Powered by: IT博客 Copyright © 玄铁剑