Auto-Implemented properties to allow properties without backend stores.
自动实现的属性允许属性没有后端存储。
The following example shows two ways to implement an immutable class that has auto-implemented properties.
下面的示例演示两种方法来实现具有自动实现属性的不可变类。
Attributes are permitted on auto-implemented properties but obviously not on the backing fields since those are not accessible from your source code.
可以在自动实现的属性上使用特性,但由于特性不可从源代码访问,显然不能用在支持字段上。
Attributes are permitted on auto-implemented properties but obviously not on the backing fields since those are not accessible from your source code.
可以在自动实现的属性上使用特性,但由于特性不可从源代码访问,显然不能用在支持字段上。
应用推荐