How to Implement a Serializable Sorted List

C

Charles Law

I have been using the Microsoft.VisualBasic.Collection as the basis of a
generic list class because it is the only list class that allows items to be
added with and without a key and hence to be retrieved by both key and index
(correct me if I'm wrong).

When I wanted to serialize the list to XML it was not too tricky to achieve
using the XMLSerializer class. However, I now want to be able to sort the
list.

Can anyone suggest how to do this? I have tried replacing the base list with
SortedList, but I can't serialize it with XMLSerializer.

TIA

Charles
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top