diff bw属性和自动实现的属性 [英] diff bw properties and auto implemented properties

查看:56
本文介绍了diff bw属性和自动实现的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





在属性上自动实现的属性中究竟发生了什么?



依据据我所知,自动化属性为属性创建备份字段,如果是这样,它是如何发生的?



谢谢

Hi,

what is exactly happening in auto-implemented properties over properties?

According to my knowledge automated properties create backup fields to properties, if so how its happening?

Thanks

推荐答案

编译器执行它。


rightity定义set和get方法的集合.....

但自动实现的属性定义set和get方法没有身体...这都是
properity defines collection of set and get methods with body.....
but auto implemented properity defines set and get methods without body ...that's all


这篇关于diff bw属性和自动实现的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆