什么是方形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...)