Sort List for Silverlight

It seems that SortedList is excluded. What do you consider the most suitable of existing collections? (to keep the same quick access and changes)

Can I finally sort the Silverlight dictionary?

Regards VLK

+3
source share
4 answers

I put both the Wintellect Power collections and the C5 Generic collections in Silverlight. I made them available here - http://jaykimble.net/powercollections-and-c5-collections-for-silverlight4.aspx .

I did this mainly because this issue has reached my interest. Feel free to use them in any project you would like to use with.

+2
source

: . .

List<T> BinarySearch. SortedList.

, . : -

List<T>.BinarySearch Method (T)

0

Wintellect Power Collections. EPL. , OrderedMultiDictionary . Silverlight. , ( Richter) WPF.

Edit:

, , , Silverlight.

0

Silverlight , KeyValuePair .

List<KeyValuePair<int, string>> sampleList = new List<KeyValuePair<int, string>>();

//Assuming you have a set of objects in an array or list
foreach(var item in items)
{
   sampleList.Add(new KeyValuePair<int, string>>(item.ID, item.Description))
}

sampleList = sampleList.OrderBy(data => data.Key).ToList();

, .

0
source

Source: https://habr.com/ru/post/1745465/


All Articles