|
.NET DotNet Forum Index » VB.NET Forum (Visual Basic .NET) » [string]...
Page 1 of 1
|
| Author |
Message |
| Brian... |
Posted: Sun Oct 12, 2008 10:11 pm |
|
|
|
Guest
|
I've noticed in some msdn examples that they have an object type as string..
but looks something like
hoststring as [String]...
what do the [ ] mean in vb.net |
|
|
| Back to top |
|
| Michael D. Ober... |
Posted: Sun Oct 12, 2008 11:14 pm |
|
|
|
Guest
|
"Brian" <bsgallatin at (no spam) community.nospam> wrote in message
news:uMdFVFOLJHA.4292 at (no spam) TK2MSFTNGP03.phx.gbl...
Quote: I've noticed in some msdn examples that they have an object type as
string.. but looks something like
hoststring as [String]...
what do the [ ] mean in vb.net
The [] is an escape sequence that is used when there is a VB.NET keyword
that is overriding a framework or class keyword (name, method, etc.). In
this case, [String] is directly referencing the framework class
System.String instead of the VB String class.
Mike Ober. |
|
|
| Back to top |
|
| |