VS2017中 C#怎样自动生成的set,get方法
c#吧
全部回复
仅看楼主
level 2
TGSHDGE
楼主
2019年02月12日 01点02分
1
level 2
TGSHDGE
楼主
为什么我生成的是这样的,带有lambda表达式
2019年02月12日 01点02分
2
Math🌌
封装字段(并使用属性)
2019年02月12日 02点02分
level 1
宇文nick
用属性不完了嘛?
2019年02月12日 02点02分
3
level 12
超梦º
lambda还不好吗...不影响使用就好了
2019年02月12日 03点02分
4
level 2
TGSHDGE
楼主
使用属性一样
2019年02月12日 06点02分
5
相约S20
编译时就自动生产了get set的方法,你的图片是对的。
2019年02月12日 07点02分
level 11
相约S20
你这是java转过来的,你百度下c# 属性
2019年02月12日 07点02分
6
level 8
亖同四😷
直接prop两下tab完事
2019年02月12日 08点02分
7
level 9
ctredici
c#用毛线get/set
直接用属性不就好了.(虽然内部实现也是get/set)
2019年02月12日 08点02分
8
level 10
cc1027cc
propfull 按Tab键两下。一般输入 propf.. 就够了。
2019年02月12日 09点02分
9
level 1
贴吧用户_7MePQUt
封装快捷键ctrl+r+e
2019年02月13日 03点02分
10
level 13
天意Jily♬
prop
2019年02月18日 13点02分
11
level 1
哦霍霍L
Ctrl +R+E
2019年02月19日 09点02分
13
1