The OrderedDictionary Collection
The System.Collections.Specialized.OrderedDictionary
collection works like HashTable
but differs in that items can be accessed via either the key or the index, as demonstrated by the following code:
Dim od As New OrderedDictionaryod.Add("a", 1)'Access via indexDim item As DictionaryEntry = CType(od(0), DictionaryEntry)Console.WriteLine(item.Value)
Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.