得到一个Object的属性
时间:2014-06-28 12:16:27
收藏:0
阅读:305
private static object GetPropertyValue(object obj, string property) { System.Reflection.PropertyInfo propertyInfo = obj.GetType().GetProperty(property); return propertyInfo.GetValue(obj, null); }
原文:http://www.cnblogs.com/dangkei/p/3798745.html
评论(0)