/// <summary> /// 获取属性值 /// </summary> /// <param name="obj"></param> /// <param name="property"></param> /// <returns></returns> public static object GetPropertyValue(object obj, PropertyInfo property) { if (property.CanRead) { FastPropertyGetHandler propertyGetter = DynamicCalls.GetPropertyGetter(property); return(propertyGetter(obj)); } return(null); }