The methods of the HashSet class are listed below. For a complete list of HashSet class members, see the HashSet Members topic.
Add | |
Clear | |
Contains | |
CopyTo (inherited from AbstractSet) | When implemented by a class, copies the elements of the ICollection to an Array, starting at a particular Array index. |
Equals (inherited from Object) | Determines whether the specified Object is equal to the current Object. |
GetEnumerator | Returns an enumerator that can iterate through a collection. |
GetHashCode (inherited from Object) | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetType (inherited from Object) | Gets the Type of the current instance. |
Remove | |
ToString (inherited from Object) | Returns a String that represents the current Object. |
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. |