Home All Groups Group Topic Archive Search About

Fastest IDictionary to SortedLIst Convert?

Author
23 Feb 2006 3:53 PM
xenophon
What is the fastest way to convert a class that implements IDictionary
to an instance of SortedList? I have 20 key/value pairs in an
IDictionary and it would be easier to review them if they were sorted.

Code readability is not important, I just want the utmost speed.

Thanks.

Author
24 Feb 2006 7:53 AM
Vadym Stetsyak
Hello, xenophon!

If you have .NET 2.0 you can use SortedDictionary. OTOH you can implement your custom sort algoritm...
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com

AddThis Social Bookmark Button