Alternative of SortedDictionary in Silverlight

Hi,

As we know SortedDictionary is not not present in Silverlight so to find alternative of this i am using Dictionary as  System.Collections.Generic.Dictionary(Of TKey, TValue).KeyCollection and for sorting i am using LINQ query.

see the full code below.

   1:  Dim sortedLists As New Dictionary(Of String, Object)
   2:   
   3:   Dim query = From sortedList In sortedLists Order By sortedList.Key Ascending Select sortedList.Key, sortedList.Value
   4:          
   5:          For Each que In query
   6:              'get the key value using que.Key
   7:              'get the value using que.Value
   8:          Next 

Thanks....

Published Thursday, June 30, 2011 12:55 PM by Rajneesh Verma

Comments

# re: Alternative of SortedDictionary in Silverlight

Thursday, June 30, 2011 4:53 AM by essay writing

cool) thanks!

# Alternative of SortedDictionary in Silverlight

Thursday, June 30, 2011 12:20 PM by Alternative of SortedDictionary in Silverlight

Pingback from  Alternative of SortedDictionary in Silverlight

# Alternative of SortedDictionary in Silverlight - Rajneesh Verma's Blog

Pingback from  Alternative of SortedDictionary in Silverlight - Rajneesh Verma's Blog

Leave a Comment

(required) 
(required) 
(optional)
(required)