The HashSet T type exposes the following members.
Constructors
Name | Description | |
---|---|---|
HashSet T | Initializes a new instance of the HashSet T class | |
HashSet T (IEnumerable T ) | Initializes a new instance of the HashSet T class | |
HashSet T (SerializationInfo, StreamingContext) | Initializes a new instance of the HashSet T class |
Methods
Name | Description | |
---|---|---|
Add | Adds the specified element to a set. (Inherited from HashSet T .) | |
Clear | Removes all elements from a HashSet T object. (Inherited from HashSet T .) | |
Contains | Determines whether a HashSet T object contains the specified element. (Inherited from HashSet T .) | |
CopyTo( T ) | Copies the elements of a HashSet T object to an array. (Inherited from HashSet T .) | |
CopyTo( T , Int32) | Copies the elements of a HashSet T object to an array, starting at the specified array index. (Inherited from HashSet T .) | |
CopyTo( T , Int32, Int32) | Copies the specified number of elements of a HashSet T object to an array, starting at the specified array index. (Inherited from HashSet T .) | |
Equals | (Inherited from Object.) | |
ExceptWith | Removes all elements in the specified collection from the current HashSet T object. (Inherited from HashSet T .) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetEnumerator | Returns an enumerator that iterates through a HashSet T object. (Inherited from HashSet T .) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetObjectData | Implements the ISerializable interface and returns the data needed to serialize a HashSet T object. (Inherited from HashSet T .) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IntersectWith | Modifies the current HashSet T object to contain only elements that are present in that object and in the specified collection. (Inherited from HashSet T .) | |
IsProperSubsetOf | Determines whether a HashSet T object is a proper subset of the specified collection. (Inherited from HashSet T .) | |
IsProperSupersetOf | Determines whether a HashSet T object is a proper superset of the specified collection. (Inherited from HashSet T .) | |
IsSubsetOf | Determines whether a HashSet T object is a subset of the specified collection. (Inherited from HashSet T .) | |
IsSupersetOf | Determines whether a HashSet T object is a superset of the specified collection. (Inherited from HashSet T .) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnDeserialization | Implements the ISerializable interface and raises the deserialization event when the deserialization is complete. (Inherited from HashSet T .) | |
Overlaps | Determines whether the current HashSet T object and a specified collection share common elements. (Inherited from HashSet T .) | |
Remove | Removes the specified element from a HashSet T object. (Inherited from HashSet T .) | |
RemoveWhere | Removes all elements that match the conditions defined by the specified predicate from a HashSet T collection. (Inherited from HashSet T .) | |
SetEquals | Determines whether a HashSet T object and the specified collection contain the same elements. (Inherited from HashSet T .) | |
SymmetricExceptWith | Modifies the current HashSet T object to contain only elements that are present either in that object or in the specified collection, but not both. (Inherited from HashSet T .) | |
ToString | (Inherited from Object.) | |
TrimExcess | Sets the capacity of a HashSet T object to the actual number of elements it contains, rounded up to a nearby, implementation-specific value. (Inherited from HashSet T .) | |
UnionWith | Modifies the current HashSet T object to contain all elements that are present in both itself and in the specified collection. (Inherited from HashSet T .) |
Properties
Name | Description | |
---|---|---|
Comparer | Gets the IEqualityComparer T object that is used to determine equality for the values in the set. (Inherited from HashSet T .) | |
Count | Gets the number of elements that are contained in a set. (Inherited from HashSet T .) |
See Also