得到一个Object的属性

        private static object GetPropertyValue(object obj, string property)
        {
            System.Reflection.PropertyInfo propertyInfo =  obj.GetType().GetProperty(property);
            return propertyInfo.GetValue(obj, null);
        }        
原文地址:https://www.cnblogs.com/dangkei/p/3798745.html