c# 技巧
时间:2017-08-17 22:41:56
收藏:0
阅读:307
1 遍历属性
Type t = typeof(Colors); PropertyInfo[] pInfo = t.GetProperties(); foreach (PropertyInfo pi in pInfo) { Color c = (Color)ColorConverter.ConvertFromString(pi.Name); …… }
原文:http://www.cnblogs.com/lged/p/7384682.html
评论(0)