Hi. When i was using VB6 i was using collections.
Now, i tried to use the Dictionary in .net, as it is basically a strongly typed collection. When i used collections, everytime you added an object / key, it was given an index. I would for / next through the collection to get all of the objects.
How can i do this with a dictionary

Should i use a generic Dictionary or a Collection?
gon10289
Dim c As New List(Of String)
c.AddRange(
New String() {"Hello", "World", "foo", "bar"})Console.WriteLine(c(2))
' returns foo For Each s As String In cConsole.WriteLine(s)
Next Dim d As New Dictionary(Of String, Integer)d.Add(
"foo", 42)Console.WriteLine(d(
"foo")) ' returns 42 For Each s As String In d.KeysConsole.WriteLine(d(s))
Next