The methods of the DictionarySet class are listed below. For a complete list of DictionarySet class members, see the DictionarySet Members topic.
Add | Adds the specified element to this set if it is not already present. |
AddAll | Adds all the elements in the specified collection to the set if they are not already present. |
Clear | Removes all objects from the set. |
Clone (inherited from Set) | Returns a clone of the Set instance. This will work for derived Set classes if the derived class implements a constructor that takes no arguments. |
Contains | Returns true if this set contains the specified element. |
ContainsAll | Returns true if the set contains all the elements in the specified collection. |
CopyTo | Copies the elements in the Set to an array. The type of array needs to be compatible with the objects in the Set, obviously. |
Equals (inherited from Object) | Determines whether the specified Object is equal to the current Object. |
ExclusiveOr (inherited from Set) | Performs an "exclusive-or" of the two sets, keeping only the elements that are in one of the sets, but not in both. The original sets are not modified during this operation. The result set is a Clone() of this set containing the elements from the exclusive-or operation. |
GetEnumerator | Gets an enumerator for the elements in the Set. |
GetHashCode (inherited from Object) | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. |
GetType (inherited from Object) | Gets the Type of the current instance. |
Intersect (inherited from Set) | Performs an "intersection" of the two sets, where only the elements that are present in both sets remain. That is, the element is included if it exists in both sets. The Intersect() operation does not modify the input sets. It returns a Clone() of this set with the appropriate elements removed. |
Minus (inherited from Set) | Performs a "minus" of set b from set a. This returns a set of all the elements in set a, removing the elements that are also in set b. The original sets are not modified during this operation. The result set is a Clone() of this Set containing the elements from the operation. |
Remove | Removes the specified element from the set. |
RemoveAll | Remove all the specified elements from this set, if they exist in this set. |
RetainAll | Retains only the elements in this set that are contained in the specified collection. |
ToString (inherited from Object) | Returns a String that represents the current Object. |
Union (inherited from Set) | Performs a "union" of the two sets, where all the elements in both sets are present. That is, the element is included if it is in either a or b. Neither this set nor the input set are modified during the operation. The return value is a Clone() of this set with the extra elements added in. |
Finalize (inherited from Object) | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. |
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object. |
DictionarySet Class | Iesi.Collections Namespace