VS 自动生成GetSet 参考来源 https://blog.csdn.net/lc547913923/article/details/47998303/ 习惯于第二种 直接输入prop,然后连按两下tab.会自动生成get/set.只需要修改下属性名即可。