What I need is to be able to put in a SortedList a combination of two fields that are non-unique, but the pair is (like database composite keys).
More precisly, i have my list, and i want to be able to do this with it
Dim myList = New Generic.SortedList(Of String, String)
myList.add("aaa","aaa")
myList.add("aaa","bbb")
myList.add("bbb","bbb")
myList.add("bbb","aaa")
This would throw an exception as "an entry with the same key already exists"
I know i could make my own object and a list of that object, but is there anything that already exists for what i want to do?
Thanks