Stackoverflow:

https://stackoverflow.com/questions/5096926/what-is-the-get-set-syntax-in-c

Just to add something... If you don't put {get; set;} you are creating a Field but if you put the {get; set;} you are creating a Property. Having a property could make some things easier especially when working with Reflection.

如果加了 {get; set;} 那么在创建 Property,如果不加就是在创建 FieldFieldData Binding 的时候不会起作用,必须要用 Property

最后修改:2021 年 10 月 04 日 11 : 30 AM
真的不买杯奶茶嘛....qwq