public static object GetPropertyValueOfObject(object info, string field)
{
if (info == null) return null;
Type t = info.GetType();
IEnumerable<System.Reflection.PropertyInfo> property = from pi in t.GetProperties() where pi.Name.ToLower() == field.ToLower() select pi;
return property.First().GetValue(info, null);
}
ImageUtils.MakeThumbnail(filepath, newpath, maxWidth, 0, "W", FileHelper.GetFileExt(filepath));
C#语句收集
最新推荐文章于 2025-07-05 10:53:00 发布