J
Jay B. Harlow [MVP - Outlook]
dx,
Have you looked at System.Collections.SortedList? (Wrapping SortedList in a
class similar to CollectionBase).
Alternatively your Add method can either Sort the list after you added it or
you can do an Insertion sort (find the position in the list for the new item
& insert the item at the position. ArrayList.BinarySearch is useful for
this). Which of course requires an Insert method.
Hope this helps
Jay
Have you looked at System.Collections.SortedList? (Wrapping SortedList in a
class similar to CollectionBase).
Alternatively your Add method can either Sort the list after you added it or
you can do an Insertion sort (find the position in the list for the new item
& insert the item at the position. ArrayList.BinarySearch is useful for
this). Which of course requires an Insert method.
Hope this helps
Jay