There is no difference. I have found that some of the C# to VB converters will put brackets in where they don't really belong. I recently converted a project and it changed all references to the Text property of the object to [Text]. Doesn't hurt anything, just a bit of overkill. That might explain the code in the starter kits.
What are square brackets used for?
sth2n
Public Sub Stop()
_Stopped = True
End Sub
You would get a compile error. Adding brackets around Stop allows you to use it. In vb.classic this wasn't available.
Cheers,
Chid
Ohadr2
Dim strName as String
strName = [String].Empty
I've seen it used like that in the ASP.NET starter kits. Any ideas why it's not this instead:
strName = String.Empty
Thanks for your help
LFerg
I don't get it, sorry, but I too don't know about this [] thing. And Google is useless.
Excelerator
public enum playstate
play
pause
[stop]
next
end enum
Carriage1
Chid