I wish to use a sorted list to store lists of strings. I am unsure as to
how things work. I want to do something like:
SortedList list = new SortedList();
for(...loop for string...) {
if( ! list.contains(k ey)) {
list.add("keyva l", new ArrayList(strin g));
else
list.GetValue() .add(string);
}
}
Can someone clarify if this concept is right. Is it the case that you can
add many elements with the same key value to the sortedlist and then
iterate through them, negating the need for an ArrayList to be the value.
Thanks for any help.