同时拥有get和set的属性被称为可读写属性(read-write property),只有get的属性被称为只读属性(read-only property),而只有set的属性则被成为只写属性(write-only property)。 一个get访问器就等于是一个返回值是属性类型的无参方法。
基于12个网页-相关网页
When created, it will automatically construct the actual proxy, exposing it via a read-only property.
一旦创建,它就会自动构建实际的代理,然后通过只读属性暴露它。
If marked as out, the interface supports co-variance and the given type can only appear as a return type or read-only property.
如果标记为out,那么接口就支持协变,并且给定的类型只能表现为一个返回类型或只读属性。
应用推荐