go top

运行时类型转换

网络释义

  Runtime Cast

...之C++运行时类型转换(Runtime Cast) 通过pointer或reference来决定对象运行时类型的一种方法是使用运行时类型转换(runtime cast),用这种方法可以查证所尝试进行的转换正确与否.当要把基类pointer转换为派生类型时,这种方法非常有用.

基于4个网页-相关网页

有道翻译

运行时类型转换

Runtime type conversion

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

双语例句

  • 这些警告原因运行时执行类型转换

    The reason for these warnings is that a type conversion will be executed in runtime.

    youdao

  • CriteriaQuery传递一个可执行查询保留类型信息这样可以直接访问选择列表元素不需要任何运行时强制类型转换

    CriteriaQuery is transferred to an executable query with its type information preserved so that the elements of the selected list can be accessed without any run-time casting.

    youdao

  • 运行获取属性需要强制对象转换特定类型如下所示

    At runtime, to access a diagram's properties, it's required to cast your instance of a diagram object to a specific type, as the following example demonstrates.

    youdao

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

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

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