Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Equivalent of java.util.Set

Status
Not open for further replies.

newDBA

MIS
Nov 8, 2001
21
FR
I'm looking for a collections object equivalent to the java.util.Set.

Basically, it should hold a list of objects without duplicates. That's pretty much like a Hashtable except I don't need to store name/value pairs.

Thanks.
 
System.Collections.ArrayList ?

you can always check myArrayList.Contains(obj); - return boolean.
 
ArrayList is good, but sometimes I like a little more customization and create a collection object that inherits from System.Collections.CollectionBase, which allows you to strongly type your collection. I find it quite useful.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top