What the square brackets mean in vb.net on this line

What do the square brackets in vb.net mean in this variable below, defining it as [String]

Dim client As New WebClient()
Dim htmlCode As [String] = client.DownloadString("http://www.stackoverflow.com")
+1
source share
2 answers

In your example, this is useless. Reserved keywords are used in parentheses to ensure that they are not, for example

Dim [String] = "asdf"

which will create a variable called "String" (which is silly, but ...)

+3
source

. , MS , ( , , )

lat long :

Public Function CalcPosition(ByVal lat as Double, ByVal long as Double) as Double

, Long - , :

Public Function CalcPosition(ByVal lat as Double, ByVal [long] as Double) as Double
+2

Source: https://habr.com/ru/post/1547158/


All Articles