小方法积累

       // 遍历枚举
     Type AA = typeof(DbType);

            foreach (string s in Enum.GetNames(AA))
            {
                Console.WriteLine("{0,-11}= {1}", s, Enum.Format(AA, Enum.Parse(AA, s), "d"));
            }

 

posted @ 2012-06-25 14:19  钢的锅  阅读(154)  评论(0编辑  收藏  举报