|
This post originated from an RSS feed registered with .NET Buzz
by Jon Box.
|
Original Post: Ever depended on the order of elements in a HybridDictionary?
Feed Title: Jon Box's Weblog
Feed URL: http://radio-weblogs.com/0126569/rss.xml
Feed Description: This is a log of my findings and amusements with .NET. I also present information on my presentations and others that I see.
|
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Jon Box
Latest Posts From Jon Box's Weblog
|
|
If you have ever needed to depend on the order of data in a HybridDictionary, be sure to put the data in backwards. For example,
Dim HD As New HybridDictionary
HD.Add("Alpha", "some value")
HD.Add("Omega", "some value")
Dim myDE As DictionaryEntry
For Each myDE In HD
Debug.WriteLine(myDE.Key)
Next myDE
Yields the following:
Omega
Alpha