Possible Duplicate:
Collection initialization syntax in Visual Basic 2008?
This does not compile.
Dim Tom As New List(Of String) = {"Tom", "Tom2"}
This does
Dim Tom As String() = {"Tom", "Tom2"}
IMO this features should be allowed for all collection types and not only arrays.
You cannot do this in the current version of Visual Basic, but the next version in Visual Studio 2010 allows this syntax:
It uses the new From keyword.
C#, on the other hand, has included its collection initializer syntax in Visual Studio 2008. You can read about it Object and Collection Initializers (C# Programming Guide) (MSDN).