The following tables list the members exposed by HashSet.
Name | Description | |
---|---|---|
![]() | HashSet Constructor | Overloaded. |
Name | Description | |
---|---|---|
![]() | Count | Returns the number of items contained in the set. |
![]() | IsEmpty | Returns true if the set is empty, that is it has no elements. |
![]() | IsSynchronized | Indicates whether this data structure is synchronized. |
![]() | SyncRoot | Returns the object that can be used to synchronize the access to this data structure. |
Name | Description | |
---|---|---|
![]() | Add | Adds the item to the set. If the item already exists in the set, does nothing. |
![]() | AddItems | Overloaded. Adds items from the specified set to this set. |
![]() ![]() | AreEqual | Returns true if both sets are equal. They have the same items. |
![]() | Clear | Clears the set. |
![]() | CopyTo | Copies all the elements of this set to the spcified array starting at the specified index in the array. |
![]() | DoesIntersect | Returns true of the specified set and this set intersect. |
![]() | Exists | Returns true if the specified item exists in this set. |
![]() | GetEnumerator | Returns a new enumerator that enumerates all the elements of this set. |
![]() | GetEquivalentItem | Returns the item in the hash that has the equivalent key to the padded in item |
![]() ![]() | GetIntersection | Calculates the intersection of the specified sets. |
![]() ![]() | GetUnion | Calculates the union of the specified sets. |
![]() | IsSubsetOf | Returns true if this set is a subset of the specified set. |
![]() | Remove | Removes the specified item from the set. If the item doesn't exist in the set does nothing. |
![]() | ToArray<T> | Returns an array containing all the elements of this set. |