什么广场brakets意味着vb.net在此字符串 [英] what do the square brakets mean in vb.net in this string
本文介绍了什么广场brakets意味着vb.net在此字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
什么是方形brakets意味着vb.net在这个变量如下定义为[字符串]
昏暗的客户端作为新的Web客户端()
昏暗的HTML code以[字符串] = client.DownloadString(http://www.stackoverflow.com)
解决方案
这是在你的榜样没用。括号内是有使用保留的关键字,因为他们不是什么,例如:
暗淡[字符串] =ASDF
这将创建一个名为字符串(这是愚蠢的,但...)VAR
What do the square brakets mean in vb.net in this variable below defining as [String]
Dim client As New WebClient()
Dim htmlCode As [String] = client.DownloadString("http://www.stackoverflow.com")
解决方案
It's useless in your example. Brackets are there to use reserved keywords for what they aren't, for example
Dim [String] = "asdf"
which will create a var named "String" (which is stupid, but...)
这篇关于什么广场brakets意味着vb.net在此字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文