Is there a Serializable Sorted List in .NET?

  • Thread starter Thread starter Charles Law
  • Start date Start date
C

Charles Law

I want to sort a collection of objects, which has been read from an XML
file. I also wish to be able to access the elements of my collection by key
or index.

Is there such a collection already that I can use? I have tried inheriting
from SortedList, but the deserializer gets upset and says that there was an
error deserializing because the collection implements IDictionary.

You probably recognise this question from a while ago, but I haven't found a
satisfactory answer yet.

TIA

Charles
 
Hi Charles,

I am waiting on comments on my sample I made for you, it did work form me
completly and I asume that adding someting as the iComparer should not be
that hard.

However you did not give any comments?
(While you promished to do)

Cor
 
Hi Bill

Following Cor's reminder to me, I have revisited his earlier answer and
found a solution.

Thanks.

Charles
 
Hi Cor

You are right, and I have now responded in the other thread.

Thanks again (and my apologies).

Charles
 
Back
Top