C#获得枚举类型的长度
时间:2016-07-17 11:26:30
收藏:0
阅读:528
enum MyEnum { Value1, Value2, } class Program { static void Main(string[] args) { var e = new MyEnum(); string[] values = System.Enum.GetNames(e.GetType()); //... } }
原文:http://www.cnblogs.com/hont/p/5677545.html
评论(0)