|
Public Member Functions |
| | Set () |
| | Create empty set.
|
| | Set (ArrayList list) |
| | Create set from ArrayList.
|
| void | Add (object o) |
| void | Remove (object o) |
| void | Join (Set s) |
| | Joins set s with 'this' set. The result is stored in 'this' set.
|
| bool | Contains (object o) |
| ArrayList | ToArrayList () |
| SetEnumerator | GetEnumerator () |
| | Makes foreach possible with sets.
|
Static Public Member Functions |
| static ArrayList | SetDiff (ArrayList a, ArrayList b) |
| | Computes the setdiff, which is all members of a which is not in b.
|
Private Attributes |
| Hashtable | _hashtable = new Hashtable() |
This is not an ideal implementation and it is not going to be. It is just around until the .net framework gets its own Set class.