c#反射--记录一种sql组装方式

Type type = model.GetType(); //获取类型 System.Reflection.PropertyInfo propertyInfo = type.GetProperty(textType); decimal value = (decimal)propertyInfo.GetValue(model, null); 补充一下反射的类型,定义了一个公共方法算法 publi
相关文章
相关标签/搜索