由网友(孤者为王)分享简介:例如。我怎么VB.Net到静态类型一个局部变量是静态型右侧的前pression有分配的一面?E.g. how do I get VB.Net to statically type a local variable to be the static type of the expression on the right...
例如。我怎么VB.Net到静态类型一个局部变量是静态型右侧的前pression有分配的一面?
E.g. how do I get VB.Net to statically type a local variable to be the static type of the expression on the right had side of the assignment?
推荐答案
这样的:
暗淡 myVar的= 3
Dim myVar = 3
您还需要
选项推断在
(在文件的顶端或在项目设置)
(At the top of the file or in project settings)
请参阅本地类型推断
相关推荐
最新文章