/Home /Archive /Syndicate /Blog /Support /About /Contact  
All Visual Basic Feeds in one place!





Collection initializers will let you initialize collections with fewer lines of code.

In the two examples below notice the use of 'From' to initial collections from lists.

Dim colorList As New List(Of String) From {"Red", "Blue", "Green","Black"} 

Dim statusDictionary As New Dictionary(Of String, Integer) From {{"Aproved", 1}, {"Disapped", 2},{"Needs More Info", 3}}}

© 2005 Serge Baranovsky. All rights reserved.
All feed content is property of original publisher. Designated trademarks and brands are the property of their respective owners.

This site is maintained by SubMain(), a division of vbCity.com, LLC