摘要: //反射进行赋值时 防止类型转换异常的标准写法 Type type = Nullable.GetUnderlyingType(propertyInfo.PropertyType); //返回可为空字段的类型 if (type!=null) { propertyInfo.SetValue(model, 阅读全文
posted @ 2022-03-02 23:16 探索的动机 阅读(94) 评论(0) 推荐(0) 编辑