📅  最后修改于: 2022-03-11 14:49:00.355000             🧑  作者: Mango
代码示例1
public static object GetPropValue(object src, string propName)
{
return src.GetType().GetProperty(propName).GetValue(src, null);
}