go top

引用类型约束

网络释义

  reference type constraint

4、可以通过关键字class指定"引用类型约束(reference type constraint)"来限制某个类型实参必须是引用类型。

基于16个网页-相关网页

有道翻译

引用类型约束

Reference type constraint

以上为机器翻译结果,长、整句建议使用 人工翻译

双语例句

  • 例如如果知道泛型用于引用类型则应用约束

    For example, if you know that your generic class is intended for use only with reference types, apply the class constraint.

    youdao

  • 某一约束应用类型参数时,必须存在具体参数约束类型标识引用转换

    When a constraint is applied to a generic type parameter, an implicit identity or reference conversion must exist from the concrete argument to the type of the constraint.

    youdao

  • 通过某个可选参数声明过程参数使用约束引用类型类型参数。

    A procedure is declared with an optional parameter that USES a type parameter that is not constrained to be a reference type.

    youdao

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

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

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