go top

read-only property

  • 只读属性

网络释义

  只读属性

同时拥有get和set的属性被称为可读写属性(read-write property),只有get的属性被称为只读属性(read-only property),而只有set的属性则被成为只写属性(write-only property)。 一个get访问器就等于是一个返回值是属性类型的无参方法。

基于12个网页-相关网页

短语

Cannot read a write-only property 不能读取只写属性

Property Is read-only 属性是只读的

双语例句

  • When created, it will automatically construct the actual proxy, exposing it via a read-only property.

    一旦创建,它就会自动构建实际的代理,然后通过只读属性暴露它。

    youdao

  • 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,那么接口就支持协变,并且给定的类型只能表现为一个返回类型或只读属性。

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定