以前写winform 最多写几个文本框,最近需要入录一个人员信息,那好几十个字段,一下子干蒙了,这要是一个个取值赋值都写到明天了,于是就自己写了个方法,也不是什么高大上的,就是很简单很普通很low的方法. 废话少说上代码,注意,这块我就用了个文本框,你也可以找到所有控件,尽量控件name与实体字段一样. public Dictionary<string, object> GetRS_InfoVue() { var dic = new Dictionary<string, object&g
建议 for 语句的循环控制变量的取值采用“半开半闭区间”写法. #include <iostream> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ using namespace std; enum Color {Red,Yellow,Green,White}; //圆类Circle的定义 class Circle
之前springboot项目常量类如下形式: @Component @RefreshScope//nacos配置中心时添加上 public class Constants { @Value("${test1}") public String test1; } 然后在配置文件properties中写test1=123 controller中应用 @Autowired private Constants constants; @GetMapping("/test") p