Silverlight , KeyValuePair .
List<KeyValuePair<int, string>> sampleList = new List<KeyValuePair<int, string>>();
foreach(var item in items)
{
sampleList.Add(new KeyValuePair<int, string>>(item.ID, item.Description))
}
sampleList = sampleList.OrderBy(data => data.Key).ToList();
, .
source
share