One feature of arrays in VB.NET is that there's another way to declare an array. You see, for backward compatibility, Microsoft kept the old VB6 syntax for declarations. However, this will work as well:
Code:
Dim arrayOfIntegers As Integer()
This method will seem more intuitive to programmers with a C background. Some developers prefer the latter because to them, an Integer isn't the same as an Integer() so this is more clear to them. Moreoever, it's consistent with C style, so they don't have to rethink what they are doing when they are flipping between C# and VB.NET. The only downside is that you can't declare and instantiate the array in one line.
You can find some interesting info about arrays in VB.NET from:
1.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.