标签:blog 技巧 info code c# style 遍历 typeof string
1 遍历属性
Type t = typeof(Colors); PropertyInfo[] pInfo = t.GetProperties(); foreach (PropertyInfo pi in pInfo) { Color c = (Color)ColorConverter.ConvertFromString(pi.Name); …… }
标签:blog 技巧 info code c# style 遍历 typeof string
原文地址:http://www.cnblogs.com/lged/p/7384682.html