SortedList question-- easy way to look for dupes?

  • Thread starter Thread starter Jim Bancroft
  • Start date Start date
J

Jim Bancroft

Hi everyone,

I've been reading through the MSDN documentation on SortedLists and
didn't find anything that leapt out at me about this, so I thought I'd ask;
is there a "good" way to check if a SortedList has duplicate values? What
about looking for duplicate values in two SortedLists?-- is there a
reccomended method for looking for dupes in that instance?
 
You won't find dupes in keys, only in values. To find dupes there, I would
consider running the values into a Hashtable and deleting, by key, any duped
values. You will have to make sure your sort is correct for this.


---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
Back
Top