VB.Net相当于C#“动态”与选项严格上 [英] VB.Net equivalent for C# 'dynamic' with Option Strict On

查看:203
本文介绍了VB.Net相当于C#“动态”与选项严格上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当使用类型安全VB.Net',有没有为C#4动态的关键字,即相当于用选项严格上?

Is there an equivalent for the C# 4 'dynamic' keyword when using 'type safe VB.Net', i.e. with Option Strict On?

推荐答案

等效对象是在VB.NET但选项严格关闭。随着选项严格在没有等价物。换一种方式动态关键字带来的选项严格关闭同等功能为C#。

The equivalent is Object in VB.NET but with Option Strict Off. With Option Strict On there's no equivalent. Put another way the dynamic keyword brings Option Strict Off equivalent functionality to C#.

这篇关于VB.Net相当于C#“动态”与选项严格上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆